diff options
| author | hryx <codroid@gmail.com> | 2019-06-23 12:31:22 -0700 |
|---|---|---|
| committer | hryx <codroid@gmail.com> | 2019-06-23 12:31:22 -0700 |
| commit | c423697c78462f4e817869a3b25e72af33ce09ed (patch) | |
| tree | 9fa567896dbf4c4b34ac5afc3fa2c899e8275b66 /src-self-hosted/arg.zig | |
| parent | 1c86a191da400bd47a5044a5b84cf9a05b15066b (diff) | |
| parent | 9153b17c922e3166a824d300781ca4e6da015787 (diff) | |
| download | zig-c423697c78462f4e817869a3b25e72af33ce09ed.tar.gz zig-c423697c78462f4e817869a3b25e72af33ce09ed.zip | |
Merge branch 'master' into translate-c-userland
Diffstat (limited to 'src-self-hosted/arg.zig')
| -rw-r--r-- | src-self-hosted/arg.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src-self-hosted/arg.zig b/src-self-hosted/arg.zig index 7bbd233a75..8f95e2d7ef 100644 --- a/src-self-hosted/arg.zig +++ b/src-self-hosted/arg.zig @@ -178,7 +178,7 @@ pub const Args = struct { else => @panic("attempted to retrieve flag with wrong type"), } } else { - return []const []const u8{}; + return [_][]const u8{}; } } }; @@ -238,11 +238,11 @@ pub const Flag = struct { }; test "parse arguments" { - const spec1 = comptime []const Flag{ + const spec1 = comptime [_]Flag{ Flag.Bool("--help"), Flag.Bool("--init"), Flag.Arg1("--build-file"), - Flag.Option("--color", []const []const u8{ + Flag.Option("--color", [_][]const u8{ "on", "off", "auto", @@ -252,7 +252,7 @@ test "parse arguments" { Flag.ArgN("--library", 1), }; - const cliargs = []const []const u8{ + const cliargs = [_][]const u8{ "build", "--help", "pos1", |
