summaryrefslogtreecommitdiff
path: root/src/memory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/memory.cc')
-rw-r--r--src/memory.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/memory.cc b/src/memory.cc
index 1cb6cb9..cf8f88c 100644
--- a/src/memory.cc
+++ b/src/memory.cc
@@ -41,7 +41,8 @@ const Allocator* heap_allocator() {
}
template <typename T>
-bool slice_copy(const Allocator* allocator, const Slice<T>* source, Slice<T>* out) {
+bool slice_copy(const Allocator* allocator, const Slice<T>* source,
+ Slice<T>* out) {
T* new_ptr = allocate(allocator, source->size(), alignof(T));
if (new_ptr == nullptr) return false;