zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5ffd8bf5f6669469d3cdbad06f09cf3844723e3b (tree)
parent 8e0a4ca4b34a0222d9261d51c34fba8ce2a1d0bc
Author: mlugg <mlugg@mlugg.co.uk>
Date:   Mon, 10 Mar 2025 22:11:25 +0000

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

Resolves: #23194

Diffstat:
Mlib/std/mem/Allocator.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/mem/Allocator.zig b/lib/std/mem/Allocator.zig @@ -308,7 +308,7 @@ pub fn resize(self: Allocator, allocation: anytype, new_len: usize) bool { /// In such case, it is more efficient for the caller to perform those /// operations. /// -/// `allocation` may be an empty slice, in which case a new allocation is made. +/// `allocation` may be an empty slice, in which case `null` is always returned. /// /// `new_len` may be zero, in which case the allocation is freed. pub fn remap(self: Allocator, allocation: anytype, new_len: usize) t: {