diff options
| author | 2024-08-30 12:33:10 +0200 | |
|---|---|---|
| committer | 2024-08-30 16:46:05 +0200 | |
| commit | 2d9db156ae928860a9acf2f1260750d3b44a4c98 (patch) | |
| tree | 56897fe054cc55491d4b41ecf8c53a55f40a9952 /clap/parsers.zig | |
| parent | count codepoints instead of bytes, to determine width (diff) | |
| download | zig-clap-2d9db156ae928860a9acf2f1260750d3b44a4c98.tar.gz zig-clap-2d9db156ae928860a9acf2f1260750d3b44a4c98.tar.xz zig-clap-2d9db156ae928860a9acf2f1260750d3b44a4c98.zip | |
adapt to latest zig changes
Diffstat (limited to 'clap/parsers.zig')
| -rw-r--r-- | clap/parsers.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clap/parsers.zig b/clap/parsers.zig index 874c23b..8abdf57 100644 --- a/clap/parsers.zig +++ b/clap/parsers.zig | |||
| @@ -92,9 +92,9 @@ test "enumeration" { | |||
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | fn ReturnType(comptime P: type) type { | 94 | fn ReturnType(comptime P: type) type { |
| 95 | return @typeInfo(P).Fn.return_type.?; | 95 | return @typeInfo(P).@"fn".return_type.?; |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | pub fn Result(comptime P: type) type { | 98 | pub fn Result(comptime P: type) type { |
| 99 | return @typeInfo(ReturnType(P)).ErrorUnion.payload; | 99 | return @typeInfo(ReturnType(P)).error_union.payload; |
| 100 | } | 100 | } |