Skip to content

Commit 7f65f8f

Browse files
committed
readme: fix example
1 parent d041dd1 commit 7f65f8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ This will do multiple allocations:
445445

446446
To facilitate memory handling, consider using an arena allocator like this:
447447
```zig
448+
const allocator = std.heap.page_allocator; // Use a suitable allocator
449+
448450
var arena = std.heap.ArenaAllocator.init(allocator);
449451
defer arena.deinit();
450452

0 commit comments

Comments
 (0)