mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
Allocator: correct PanicFree function name
This commit is contained in:
parent
bb55276f06
commit
3679d737f8
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user