| ... | @@ -308,7 +308,8 @@ pub fn resize(self: Allocator, allocation: anytype, new_len: usize) bool { | ... | @@ -308,7 +308,8 @@ pub fn resize(self: Allocator, allocation: anytype, new_len: usize) bool { |
| 308 | /// In such case, it is more efficient for the caller to perform those | 308 | /// In such case, it is more efficient for the caller to perform those |
| 309 | /// operations. | 309 | /// operations. |
| 310 | /// | 310 | /// |
| 311 | /// `allocation` may be an empty slice, in which case `null` is always returned. | 311 | /// `allocation` may be an empty slice, in which case `null` is returned, |
| | 312 | /// unless `new_len` is also 0, in which case `allocation` is returned. |
| 312 | /// | 313 | /// |
| 313 | /// `new_len` may be zero, in which case the allocation is freed. | 314 | /// `new_len` may be zero, in which case the allocation is freed. |
| 314 | pub fn remap(self: Allocator, allocation: anytype, new_len: usize) t: { | 315 | pub fn remap(self: Allocator, allocation: anytype, new_len: usize) t: { |