Skip to content

Commit b069a0a

Browse files
committed
update std.heap.GeneralPurposeAllocator to std.heap.DebugAllocator
1 parent f8d0cbf commit b069a0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ const std = @import("std");
22
const MetaModel = @import("MetaModel.zig");
33

44
pub fn main() !void {
5-
var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){};
6-
defer _ = general_purpose_allocator.deinit();
5+
var debug_allocator: std.heap.DebugAllocator(.{}) = .init;
6+
defer _ = debug_allocator.deinit();
77

8-
const gpa = general_purpose_allocator.allocator();
8+
const gpa = debug_allocator.allocator();
99

1010
var arg_it = try std.process.ArgIterator.initWithAllocator(gpa);
1111
defer arg_it.deinit();

0 commit comments

Comments
 (0)