diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-02-13 10:37:49 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-13 16:19:34 -0500 |
| commit | cf67d30cdcdd46264e59184ff6a1bf9062a77878 (patch) | |
| tree | 1f233284830c6a9d47097a56fad5248c69906111 /lib/std/heap.zig | |
| parent | a090a5e3bcf242e8ed69346d9762d9c2fab6059a (diff) | |
| download | zig-cf67d30cdcdd46264e59184ff6a1bf9062a77878.tar.gz zig-cf67d30cdcdd46264e59184ff6a1bf9062a77878.zip | |
Makes ArenaAllocator.deinit() not require a mutable reference.
Diffstat (limited to 'lib/std/heap.zig')
| -rw-r--r-- | lib/std/heap.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/heap.zig b/lib/std/heap.zig index e7196f82f2..1bce45081d 100644 --- a/lib/std/heap.zig +++ b/lib/std/heap.zig @@ -533,7 +533,7 @@ pub const ArenaAllocator = struct { }; } - pub fn deinit(self: *ArenaAllocator) void { + pub fn deinit(self: ArenaAllocator) void { var it = self.buffer_list.first; while (it) |node| { // this has to occur before the free because the free frees node |
