diff options
| author | 2019-12-11 08:40:24 +0100 | |
|---|---|---|
| committer | 2019-12-11 08:40:24 +0100 | |
| commit | 98b4a1088256dceec9b2a76e47d6e9c7e8043377 (patch) | |
| tree | ac893e1d6d3da5bbee29a3bd705aebde8ceb1060 /clap | |
| parent | Merge pull request #13 from dbandstra/update-for-varargs-removal (diff) | |
| parent | update for latest zig (typeOf was renamed) (diff) | |
| download | zig-clap-98b4a1088256dceec9b2a76e47d6e9c7e8043377.tar.gz zig-clap-98b4a1088256dceec9b2a76e47d6e9c7e8043377.tar.xz zig-clap-98b4a1088256dceec9b2a76e47d6e9c7e8043377.zip | |
Merge pull request #14 from dbandstra/update-for-typeof-rename
update for latest zig (typeOf was renamed)
Diffstat (limited to 'clap')
| -rw-r--r-- | clap/streaming.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clap/streaming.zig b/clap/streaming.zig index 3678917..95ee581 100644 --- a/clap/streaming.zig +++ b/clap/streaming.zig | |||
| @@ -170,7 +170,7 @@ fn testNoErr(params: []const clap.Param(u8), args_strings: []const []const u8, r | |||
| 170 | const arg = (c.next() catch unreachable) orelse unreachable; | 170 | const arg = (c.next() catch unreachable) orelse unreachable; |
| 171 | testing.expectEqual(res.param, arg.param); | 171 | testing.expectEqual(res.param, arg.param); |
| 172 | const expected_value = res.value orelse { | 172 | const expected_value = res.value orelse { |
| 173 | testing.expectEqual(@as(@typeOf(arg.value), null), arg.value); | 173 | testing.expectEqual(@as(@TypeOf(arg.value), null), arg.value); |
| 174 | continue; | 174 | continue; |
| 175 | }; | 175 | }; |
| 176 | const actual_value = arg.value orelse unreachable; | 176 | const actual_value = arg.value orelse unreachable; |