From 5ed833bd79904daa0753b403f539b3142aba1921 Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Tue, 17 Dec 2024 07:10:37 +0500 Subject: [PATCH] share/build_runners/live.zig: update to `0.14.0-dev.2509+0c457fa7e` Signed-off-by: Eric Joldasov --- share/build_runners/live.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/build_runners/live.zig b/share/build_runners/live.zig index 9560c7c..7eaebd5 100644 --- a/share/build_runners/live.zig +++ b/share/build_runners/live.zig @@ -1487,20 +1487,20 @@ fn usage(b: *std.Build, out_stream: anytype) !void { ); } -fn nextArg(args: [][:0]const u8, idx: *usize) ?[:0]const u8 { +fn nextArg(args: []const [:0]const u8, idx: *usize) ?[:0]const u8 { if (idx.* >= args.len) return null; defer idx.* += 1; return args[idx.*]; } -fn nextArgOrFatal(args: [][:0]const u8, idx: *usize) [:0]const u8 { +fn nextArgOrFatal(args: []const [:0]const u8, idx: *usize) [:0]const u8 { return nextArg(args, idx) orelse { std.debug.print("expected argument after '{s}'\n access the help menu with 'zig build -h'\n", .{args[idx.* - 1]}); process.exit(1); }; } -fn argsRest(args: [][:0]const u8, idx: usize) ?[][:0]const u8 { +fn argsRest(args: []const [:0]const u8, idx: usize) ?[]const [:0]const u8 { if (idx >= args.len) return null; return args[idx..]; }