diff --git a/lib/std/mem/Allocator.zig b/lib/std/mem/Allocator.zig index bbd9e94c17..1b63cc6a0f 100644 --- a/lib/std/mem/Allocator.zig +++ b/lib/std/mem/Allocator.zig @@ -463,7 +463,7 @@ pub fn dupe(allocator: Allocator, comptime T: type, m: []const T) Error![]T { return new_buf; } -/// Copies `m` to newly allocated memory, with a null-terminated element. Caller owns the memory. +/// Copies `m` to newly allocated memory, with a sentinel-terminated element. Caller owns the memory. pub fn dupeSentinel( allocator: Allocator, comptime T: type,