From 3679d737f88fc18da8b8f1d6d6d2a6e8690ebd1d Mon Sep 17 00:00:00 2001 From: Lee Cannon Date: Sun, 1 May 2022 20:44:48 +0100 Subject: [PATCH] Allocator: correct `PanicFree` function name --- lib/std/mem/Allocator.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/mem/Allocator.zig b/lib/std/mem/Allocator.zig index 2c6d53849d..2edfde04a6 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,