mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-13 23:46:16 +01:00
std.mem.Allocator.remap: fix incorrect doc comment (part 2)
This commit is contained in:
parent
77395457fe
commit
24db007cde
1 changed files with 2 additions and 1 deletions
|
|
@ -308,7 +308,8 @@ 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 `null` is always returned.
|
||||
/// `allocation` may be an empty slice, in which case `null` is returned,
|
||||
/// unless `new_len` is also 0, in which case `allocation` is returned.
|
||||
///
|
||||
/// `new_len` may be zero, in which case the allocation is freed.
|
||||
pub fn remap(self: Allocator, allocation: anytype, new_len: usize) t: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue