diff options
Diffstat (limited to 'src/core.zig')
| -rw-r--r-- | src/core.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.zig b/src/core.zig index a0f794c..bdd1bf4 100644 --- a/src/core.zig +++ b/src/core.zig | |||
| @@ -99,7 +99,7 @@ pub fn Param(comptime Id: type) type { | |||
| 99 | takes_value: bool, | 99 | takes_value: bool, |
| 100 | names: Names, | 100 | names: Names, |
| 101 | 101 | ||
| 102 | pub fn init(id: Id, takes_value: bool, names: *const Names) Self { | 102 | pub fn init(id: Id, takes_value: bool, names: Names) Self { |
| 103 | // Assert, that if the param have no name, then it has to take | 103 | // Assert, that if the param have no name, then it has to take |
| 104 | // a value. | 104 | // a value. |
| 105 | debug.assert(names.bare != null or | 105 | debug.assert(names.bare != null or |
| @@ -110,7 +110,7 @@ pub fn Param(comptime Id: type) type { | |||
| 110 | return Self{ | 110 | return Self{ |
| 111 | .id = id, | 111 | .id = id, |
| 112 | .takes_value = takes_value, | 112 | .takes_value = takes_value, |
| 113 | .names = names.*, | 113 | .names = names, |
| 114 | }; | 114 | }; |
| 115 | } | 115 | } |
| 116 | }; | 116 | }; |
| @@ -331,7 +331,7 @@ pub fn Clap(comptime Id: type, comptime ArgError: type) type { | |||
| 331 | } | 331 | } |
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | fn chainging(clap: *Self, state: *const State.Chaining) !?Arg(Id) { | 334 | fn chainging(clap: *Self, state: State.Chaining) !?Arg(Id) { |
| 335 | const arg = state.arg; | 335 | const arg = state.arg; |
| 336 | const index = state.index; | 336 | const index = state.index; |
| 337 | const next_index = index + 1; | 337 | const next_index = index + 1; |