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.
2 parents 23d958c + c2e6489 commit 97310d9Copy full SHA for 97310d9
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