Skip to content

Commit 96d3953

Browse files
committed
update to new for loop syntax
1 parent e94f7e6 commit 96d3953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/build_runner.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ fn runStepNames(
279279
} else {
280280
try step_stack.resize(step_names.len);
281281

282-
for (step_names) |step_name, i| {
282+
for (step_names, 0..) |step_name, i| {
283283
const s = b.top_level_steps.get(step_name) orelse {
284284
std.debug.print("no step named '{s}'. Access the help menu with 'zig build -h'\n", .{step_name});
285285
process.exit(1);

0 commit comments

Comments
 (0)