summaryrefslogtreecommitdiff
path: root/clap
diff options
context:
space:
mode:
Diffstat (limited to 'clap')
-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}