diff options
| author | 2024-12-14 01:28:31 +0100 | |
|---|---|---|
| committer | 2024-12-14 01:28:31 +0100 | |
| commit | 7f65f8ff91cc8c43e89ccf24aa4ab14d8783f36a (patch) | |
| tree | c55b585faa1da2c42c64d98a6a76a3f4f5f88bdd /README.md | |
| parent | readme: fix wording (diff) | |
| download | zig-sqlite-7f65f8ff91cc8c43e89ccf24aa4ab14d8783f36a.tar.gz zig-sqlite-7f65f8ff91cc8c43e89ccf24aa4ab14d8783f36a.tar.xz zig-sqlite-7f65f8ff91cc8c43e89ccf24aa4ab14d8783f36a.zip | |
readme: fix example
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -445,6 +445,8 @@ This will do multiple allocations: | |||
| 445 | 445 | ||
| 446 | To facilitate memory handling, consider using an arena allocator like this: | 446 | To facilitate memory handling, consider using an arena allocator like this: |
| 447 | ```zig | 447 | ```zig |
| 448 | const allocator = std.heap.page_allocator; // Use a suitable allocator | ||
| 449 | |||
| 448 | var arena = std.heap.ArenaAllocator.init(allocator); | 450 | var arena = std.heap.ArenaAllocator.init(allocator); |
| 449 | defer arena.deinit(); | 451 | defer arena.deinit(); |
| 450 | 452 | ||