File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ const query =
285
285
var stmt = try db.prepare(query);
286
286
defer stmt.deinit();
287
287
288
- const allocator = std.heap.page_allocator; // Use a proper allocator
288
+ const allocator = std.heap.page_allocator; // Use a suitable allocator
289
289
290
290
const names = try stmt.all([]const u8, allocator, .{}, .{
291
291
.age1 = 20,
@@ -306,7 +306,7 @@ const query =
306
306
var stmt = try db.prepare(query);
307
307
defer stmt.deinit();
308
308
309
- const allocator = std.heap.page_allocator; // Use a proper allocator
309
+ const allocator = std.heap.page_allocator; // Use a suitable allocator
310
310
311
311
const row = try stmt.oneAlloc([]const u8, allocator, .{}, .{
312
312
.id = 200,
@@ -353,7 +353,7 @@ var iter = try stmt.iterator([]const u8, .{
353
353
.age = 20,
354
354
});
355
355
356
- const allocator = std.heap.page_allocator; // Use a proper allocator
356
+ const allocator = std.heap.page_allocator; // Use a suitable allocator
357
357
358
358
while (true) {
359
359
var arena = std.heap.ArenaAllocator.init(allocator);
You can’t perform that action at this time.
0 commit comments