diff options
| author | 2018-11-14 14:55:05 +0100 | |
|---|---|---|
| committer | 2018-11-14 14:55:05 +0100 | |
| commit | 547a9f23f7960de0601b3f325768d58dae3ef5ec (patch) | |
| tree | 097add1902bdfa95f96d1097bbc2898ab7409fd8 /src/comptime.zig | |
| parent | Added pub flag/option/positional init funcs to Param (diff) | |
| download | zig-clap-547a9f23f7960de0601b3f325768d58dae3ef5ec.tar.gz zig-clap-547a9f23f7960de0601b3f325768d58dae3ef5ec.tar.xz zig-clap-547a9f23f7960de0601b3f325768d58dae3ef5ec.zip | |
Zig fmt
Diffstat (limited to 'src/comptime.zig')
| -rw-r--r-- | src/comptime.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comptime.zig b/src/comptime.zig index ddcd7e1..808915d 100644 --- a/src/comptime.zig +++ b/src/comptime.zig | |||
| @@ -24,9 +24,8 @@ pub fn ComptimeClap(comptime Id: type, comptime params: []const clap.Param(Id)) | |||
| 24 | break :blk res; | 24 | break :blk res; |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | converted_params = converted_params ++ []clap.Param(usize){ | 27 | const converted = clap.Param(usize).init(index, param.takes_value, param.names); |
| 28 | clap.Param(usize).init(index, param.takes_value, param.names), | 28 | converted_params = converted_params ++ []clap.Param(usize){converted}; |
| 29 | }; | ||
| 30 | } | 29 | } |
| 31 | 30 | ||
| 32 | return struct { | 31 | return struct { |