| ... | @@ -144,10 +144,10 @@ pub fn NoOpFree(comptime AllocatorType: type) type { | ... | @@ -144,10 +144,10 @@ pub fn NoOpFree(comptime AllocatorType: type) type { |
| 144 | }; | 144 | }; |
| 145 | } | 145 | } |
| 146 | | 146 | |
| 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. |
| 148 | pub fn PanicFree(comptime AllocatorType: type) type { | 148 | pub fn PanicFree(comptime AllocatorType: type) type { |
| 149 | return struct { | 149 | return struct { |
| 150 | pub fn noOpFree( | 150 | pub fn panicFree( |
| 151 | self: *AllocatorType, | 151 | self: *AllocatorType, |
| 152 | buf: []u8, | 152 | buf: []u8, |
| 153 | buf_align: u29, | 153 | buf_align: u29, |