diff --git a/src/lang.zig b/src/lang.zig index 848cf9a..34c5004 100644 --- a/src/lang.zig +++ b/src/lang.zig @@ -359,7 +359,7 @@ test "noop" { defer cmds.deinit(); std.testing.expectEqual(cmds.len, 1); - std.testing.expectEqual(cmds.at(0).command, .Noop); + std.testing.expectEqual(cmds.items[0].command, .Noop); } test "load, phaser, quicksave" { @@ -376,7 +376,7 @@ test "load, phaser, quicksave" { defer cmds.deinit(); std.testing.expectEqual(cmds.len, 3); - std.testing.expectEqual(cmds.at(0).command, .Load); - std.testing.expectEqual(cmds.at(1).command, .Phaser); - std.testing.expectEqual(cmds.at(2).command, .Quicksave); + std.testing.expectEqual(cmds.items[0].command, .Load); + std.testing.expectEqual(cmds.items[1].command, .Phaser); + std.testing.expectEqual(cmds.items[2].command, .Quicksave); } diff --git a/src/main.zig b/src/main.zig index 2b8da57..04bcf2d 100644 --- a/src/main.zig +++ b/src/main.zig @@ -150,7 +150,7 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void { std.debug.warn("repl: error while parsing: {}\n", .{err}); continue; }; - current = cmds_parsed.at(0); + current = cmds_parsed.items[0]; // by cloning the parent runner, we can iteratively write // whatever command we want and only commit the good results