authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-03-10 22:11:25+00:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-03-11 11:20:46-07:00
log72775adcd02ef8baea385430fe18404a1df189d5
tree348b0e09ceddeb58aab48609b54529fe8476b6ca
parent372d56371fb6251ac2c95759461c4b9c12c2f03f

std.mem.Allocator.remap: fix incorrect doc comment

Resolves: #23194

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

lib/std/mem/Allocator.zig+1-1
......@@ -308,7 +308,7 @@ 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 a new allocation is made.
311/// `allocation` may be an empty slice, in which case `null` is always returned.
312312///
313313/// `new_len` may be zero, in which case the allocation is freed.
314314pub fn remap(self: Allocator, allocation: anytype, new_len: usize) t: {