zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 3679d737f88fc18da8b8f1d6d6d2a6e8690ebd1d (tree)
parent bb55276f063f2934795c1c2523dc7525cd4adce5
Author: Lee Cannon <leecannon@leecannon.xyz>
Date:   Sun,  1 May 2022 20:44:48 +0100

Allocator: correct `PanicFree` function name

Diffstat:
Mlib/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 @@ -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,