diff options
| author | ominitay <37453713+ominitay@users.noreply.github.com> | 2021-12-19 22:06:43 +0000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-12-21 11:15:33 -0800 |
| commit | 7e16bb36d82cf45cd5f6f4da38fba512554f66ed (patch) | |
| tree | 72a943205528ec58a80d6939670cb3b2a1695fe0 /test/cli.zig | |
| parent | 0d09b87c1409660a9d541e7f2972480b4be137a5 (diff) | |
| download | zig-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.zig | 8 |
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" }); |
