From 7f65f8ff91cc8c43e89ccf24aa4ab14d8783f36a Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 14 Dec 2024 01:28:31 +0100 Subject: readme: fix example --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') 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: To facilitate memory handling, consider using an arena allocator like this: ```zig +const allocator = std.heap.page_allocator; // Use a suitable allocator + var arena = std.heap.ArenaAllocator.init(allocator); defer arena.deinit(); -- cgit v1.2.3