| ... | @@ -303,7 +303,8 @@ fn allocBytesWithAlignment( | ... | @@ -303,7 +303,8 @@ fn allocBytesWithAlignment( |
| 303 | /// It is guaranteed to not move the pointer, however the allocator | 303 | /// It is guaranteed to not move the pointer, however the allocator |
| 304 | /// implementation may refuse the resize request by returning `false`. | 304 | /// implementation may refuse the resize request by returning `false`. |
| 305 | /// | 305 | /// |
| 306 | /// `allocation` may be an empty slice, in which case a new allocation is made. | 306 | /// `allocation` may be an empty slice, in which case `false` is returned, |
| | 307 | /// unless `new_len` is also 0, in which case `true` is returned. |
| 307 | /// | 308 | /// |
| 308 | /// `new_len` may be zero, in which case the allocation is freed. | 309 | /// `new_len` may be zero, in which case the allocation is freed. |
| 309 | pub fn resize(self: Allocator, allocation: anytype, new_len: usize) bool { | 310 | pub fn resize(self: Allocator, allocation: anytype, new_len: usize) bool { |