Skip to content

Commit 39166a3

Browse files
committed
readme: define the allocator
1 parent 5e42e6e commit 39166a3

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
@@ -353,6 +353,8 @@ var iter = try stmt.iterator([]const u8, .{
353353
.age = 20,
354354
});
355355
356+
const allocator = std.heap.page_allocator; // Use a proper allocator
357+
356358
while (true) {
357359
var arena = std.heap.ArenaAllocator.init(allocator);
358360
defer arena.deinit();

0 commit comments

Comments
 (0)