aboutsummaryrefslogtreecommitdiff
path: root/lib/build_runner.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-19 10:14:59 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-03-15 10:48:12 -0700
commit96d798db8b704a2fd367e58a19d6fe853a8a76a8 (patch)
tree8aa40bf594e23ceb82d878fa8dffb29c29eb1d32 /lib/build_runner.zig
parent26486c7f235596ffdcbfcd44283a787b049561b8 (diff)
downloadzig-96d798db8b704a2fd367e58a19d6fe853a8a76a8.tar.gz
zig-96d798db8b704a2fd367e58a19d6fe853a8a76a8.zip
update to new for loop syntax
Diffstat (limited to 'lib/build_runner.zig')
-rw-r--r--lib/build_runner.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/build_runner.zig b/lib/build_runner.zig
index b2d89ba79c..24fd3440a3 100644
--- a/lib/build_runner.zig
+++ b/lib/build_runner.zig
@@ -279,7 +279,7 @@ fn runStepNames(
} else {
try step_stack.resize(step_names.len);
- for (step_names) |step_name, i| {
+ for (step_names, 0..) |step_name, i| {
const s = b.top_level_steps.get(step_name) orelse {
std.debug.print("no step named '{s}'. Access the help menu with 'zig build -h'\n", .{step_name});
process.exit(1);