authorgravatar for leecannon@leecannon.xyzLee Cannon <leecannon@leecannon.xyz> 2022-05-01 20:44:48+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-02 15:29:27-04:00
log3679d737f88fc18da8b8f1d6d6d2a6e8690ebd1d
tree36ae57f42816b85b90cd50f69e6e42768dc2648f
parentbb55276f063f2934795c1c2523dc7525cd4adce5

Allocator: correct `PanicFree` function name


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/mem/Allocator.zig+2-2
......@@ -144,10 +144,10 @@ pub fn NoOpFree(comptime AllocatorType: type) type {
144144 };
145145}
146146
147/// Set freeFn to `PanicFree(AllocatorType).noOpFree` if free is not a supported operation.
147/// Set freeFn to `PanicFree(AllocatorType).panicFree` if free is not a supported operation.
148148pub fn PanicFree(comptime AllocatorType: type) type {
149149 return struct {
150 pub fn noOpFree(
150 pub fn panicFree(
151151 self: *AllocatorType,
152152 buf: []u8,
153153 buf_align: u29,