diff options
| author | 2020-03-01 21:32:15 -0800 | |
|---|---|---|
| committer | 2020-03-01 21:32:15 -0800 | |
| commit | ffc5e241a6e41895d930d1a2831ad517cccaa0b9 (patch) | |
| tree | ee382b1dfc247294a140df3ebb5234445b496399 /clap | |
| parent | Merge pull request #14 from dbandstra/update-for-typeof-rename (diff) | |
| download | zig-clap-ffc5e241a6e41895d930d1a2831ad517cccaa0b9.tar.gz zig-clap-ffc5e241a6e41895d930d1a2831ad517cccaa0b9.tar.xz zig-clap-ffc5e241a6e41895d930d1a2831ad517cccaa0b9.zip | |
update for latest zig
Diffstat (limited to 'clap')
| -rw-r--r-- | clap/args.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clap/args.zig b/clap/args.zig index 071f756..0141d86 100644 --- a/clap/args.zig +++ b/clap/args.zig | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | const builtin = @import("builtin"); | ||
| 2 | const std = @import("std"); | 1 | const std = @import("std"); |
| 3 | 2 | ||
| 3 | const builtin = std.builtin; | ||
| 4 | const debug = std.debug; | 4 | const debug = std.debug; |
| 5 | const heap = std.heap; | 5 | const heap = std.heap; |
| 6 | const mem = std.mem; | 6 | const mem = std.mem; |
| @@ -70,7 +70,7 @@ pub const OsIterator = struct { | |||
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | pub fn next(iter: *OsIterator) Error!?[]const u8 { | 72 | pub fn next(iter: *OsIterator) Error!?[]const u8 { |
| 73 | if (builtin.os == builtin.Os.windows) { | 73 | if (builtin.os.tag == .windows) { |
| 74 | return try iter.args.next(&iter.arena.allocator) orelse return null; | 74 | return try iter.args.next(&iter.arena.allocator) orelse return null; |
| 75 | } else { | 75 | } else { |
| 76 | return iter.args.nextPosix(); | 76 | return iter.args.nextPosix(); |