Skip to content

Commit 5ffd8bf

Browse files
committed
std.mem.Allocator.remap: fix incorrect doc comment
Resolves: #23194
1 parent 8e0a4ca commit 5ffd8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/mem/Allocator.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -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.
314314
pub fn remap(self: Allocator, allocation: anytype, new_len: usize) t: {

0 commit comments

Comments
 (0)