We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09a65a8 commit c2e6489Copy full SHA for c2e6489
content/posts/2025-08-16-reserve-first.dj
@@ -180,7 +180,7 @@ pub fn grow(
180
assert(size_new >= self.size);
181
if (size_new == self.size) return;
182
183
- try self.nodes.ensureUnusedCapacity(gpa, 1);
+ try self.nodes.ensureUnusedCapacity(alloc, 1);
184
const data_new =
185
try alloc.alloc(u8, size_new * size_new * self.format.depth());
186
errdefer comptime unreachable; // End reservation phase.
0 commit comments