summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index ccfc0ea..458d2e2 100644
--- a/README.md
+++ b/README.md
@@ -445,6 +445,8 @@ This will do multiple allocations:
445 445
446To facilitate memory handling, consider using an arena allocator like this: 446To facilitate memory handling, consider using an arena allocator like this:
447```zig 447```zig
448const allocator = std.heap.page_allocator; // Use a suitable allocator
449
448var arena = std.heap.ArenaAllocator.init(allocator); 450var arena = std.heap.ArenaAllocator.init(allocator);
449defer arena.deinit(); 451defer arena.deinit();
450 452