aboutsummaryrefslogtreecommitdiff
path: root/test/cli.zig
diff options
context:
space:
mode:
authorominitay <37453713+ominitay@users.noreply.github.com>2021-12-19 22:06:43 +0000
committerAndrew Kelley <andrew@ziglang.org>2021-12-21 11:15:33 -0800
commit7e16bb36d82cf45cd5f6f4da38fba512554f66ed (patch)
tree72a943205528ec58a80d6939670cb3b2a1695fe0 /test/cli.zig
parent0d09b87c1409660a9d541e7f2972480b4be137a5 (diff)
downloadzig-7e16bb36d82cf45cd5f6f4da38fba512554f66ed.tar.gz
zig-7e16bb36d82cf45cd5f6f4da38fba512554f66ed.zip
Change `ArgIterator.next()` return type
Changes the return type of `ArgIterator.next()` from `?(NextError![:0]u8)` to `NextError!?[:0]u8`.
Diffstat (limited to 'test/cli.zig')
-rw-r--r--test/cli.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cli.zig b/test/cli.zig
index d4afe417ce..c99c86b008 100644
--- a/test/cli.zig
+++ b/test/cli.zig
@@ -18,14 +18,14 @@ pub fn main() !void {
a = arena.allocator();
- const zig_exe_rel = try (arg_it.next(a) orelse {
+ const zig_exe_rel = (try arg_it.next(a)) orelse {
std.debug.print("Expected first argument to be path to zig compiler\n", .{});
return error.InvalidArgs;
- });
- const cache_root = try (arg_it.next(a) orelse {
+ };
+ const cache_root = (try arg_it.next(a)) orelse {
std.debug.print("Expected second argument to be cache root directory path\n", .{});
return error.InvalidArgs;
- });
+ };
const zig_exe = try fs.path.resolve(a, &[_][]const u8{zig_exe_rel});
const dir_path = try fs.path.join(a, &[_][]const u8{ cache_root, "clitest" });