From a1e0b9979ab2a47ad1d13dd06106c3143d9a1c9e Mon Sep 17 00:00:00 2001 From: Johan Jansson Date: Sun, 15 Oct 2023 21:07:35 +0300 Subject: [PATCH] std.heap.ArenaAllocator: fix doc comment typo Fixes #17537 --- lib/std/heap/arena_allocator.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/heap/arena_allocator.zig b/lib/std/heap/arena_allocator.zig index d547987f63..69a99eccd3 100644 --- a/lib/std/heap/arena_allocator.zig +++ b/lib/std/heap/arena_allocator.zig @@ -89,7 +89,7 @@ pub const ArenaAllocator = struct { /// functional in that case, all memory is released. Future allocations just might /// be slower. /// - /// NOTE: If `mode` is `free_mode`, the function will always return `true`. + /// NOTE: If `mode` is `free_all`, the function will always return `true`. pub fn reset(self: *ArenaAllocator, mode: ResetMode) bool { // Some words on the implementation: // The reset function can be implemented with two basic approaches: