Skip to content

Commit

Permalink
Fix loop index capture
Browse files Browse the repository at this point in the history
  • Loading branch information
aherrmann committed Nov 25, 2023
1 parent e743a55 commit 2302eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zig/tests/integration_tests/integration_testing.zig
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub const BitContext = struct {
var argv = try std.testing.allocator.alloc([]const u8, argc);
defer std.testing.allocator.free(argv);
argv[0] = self.bazel_path;
for (args.argv) |arg, i| {
for (args.argv, 0..) |arg, i| {
argv[i + 1] = arg;
}
if (self.bzlmod_enabled and !args.omit_bzlmod_flag) {
Expand Down

0 comments on commit 2302eb3

Please sign in to comment.