Commit cf67d30cdc

Felix (xq) Queißner <git@mq32.de>
2020-02-13 10:37:49
Makes ArenaAllocator.deinit() not require a mutable reference.
1 parent a090a5e
Changed files (1)
lib
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