summaryrefslogtreecommitdiff
path: root/clap/parsers.zig
diff options
context:
space:
mode:
authorGravatar owl2024-08-30 12:33:10 +0200
committerGravatar Komari Spaghetti2024-08-30 16:46:05 +0200
commit2d9db156ae928860a9acf2f1260750d3b44a4c98 (patch)
tree56897fe054cc55491d4b41ecf8c53a55f40a9952 /clap/parsers.zig
parentcount codepoints instead of bytes, to determine width (diff)
downloadzig-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.zig4
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
94fn ReturnType(comptime P: type) type { 94fn ReturnType(comptime P: type) type {
95 return @typeInfo(P).Fn.return_type.?; 95 return @typeInfo(P).@"fn".return_type.?;
96} 96}
97 97
98pub fn Result(comptime P: type) type { 98pub fn Result(comptime P: type) type {
99 return @typeInfo(ReturnType(P)).ErrorUnion.payload; 99 return @typeInfo(ReturnType(P)).error_union.payload;
100} 100}