diff --git a/lib/std/mem/Allocator.zig b/lib/std/mem/Allocator.zig index 2c6d53849dc1a417aedf345f93ada29bfd7b11cc..2edfde04a672d3613d863f5114b2ea2dcbb8f7c2 100644 --- a/lib/std/mem/Allocator.zig +++ b/lib/std/mem/Allocator.zig @@ -144,10 +144,10 @@ pub fn NoOpFree(comptime AllocatorType: type) type { }; } -/// Set freeFn to `PanicFree(AllocatorType).noOpFree` if free is not a supported operation. +/// Set freeFn to `PanicFree(AllocatorType).panicFree` if free is not a supported operation. pub fn PanicFree(comptime AllocatorType: type) type { return struct { - pub fn noOpFree( + pub fn panicFree( self: *AllocatorType, buf: []u8, buf_align: u29,