authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-03-11 15:19:52+00:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-03-12 12:25:32-07:00
logaf4b39395c8b6af2fcbac708d012e267924e0652
tree49470e826806c1dc9ab5c0925a0548097631f65b
parent99b5a4f29459b1ee2a1b00b51ffec3bafa2b6632

std.mem.Allocator.remap: fix incorrect doc comment (part 2)


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

lib/std/mem/Allocator.zig+2-1
......@@ -308,7 +308,8 @@ pub fn resize(self: Allocator, allocation: anytype, new_len: usize) bool {
308308/// In such case, it is more efficient for the caller to perform those
309309/// operations.
310310///
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.
312313///
313314/// `new_len` may be zero, in which case the allocation is freed.
314315pub fn remap(self: Allocator, allocation: anytype, new_len: usize) t: {