Skip to content

Commit 25cf5a6

Browse files
committed
update home page code snippet
1 parent 053fc7a commit 25cf5a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zig-code/index.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ const parseInt = std.fmt.parseInt;
33

44
test "parse integers" {
55
const input = "123 67 89,99";
6-
const ally = std.testing.allocator;
6+
const gpa = std.testing.allocator;
77

8-
var list = std.ArrayList(u32).init(ally);
8+
var list = std.ArrayList(u32).init(gpa);
99
// Ensure the list is freed at scope exit.
1010
// Try commenting out this line!
1111
defer list.deinit();

0 commit comments

Comments
 (0)