authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-03-10 22:11:25+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-03-11 04:15:38+00:00
log5ffd8bf5f6669469d3cdbad06f09cf3844723e3b
tree2e8af534b438e498a51643b354afab79d83951c5
parent8e0a4ca4b34a0222d9261d51c34fba8ce2a1d0bc

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: {