diff options
| author | 2024-10-22 17:00:54 +0200 | |
|---|---|---|
| committer | 2024-10-22 17:00:54 +0200 | |
| commit | d71e1b6367e9a70a1c344e068caff2a103859b78 (patch) | |
| tree | 865f78867b3d993d5b0ac579a2ea240f15c40c40 | |
| parent | refactor: Remove workaround in `parseEx` that required `anyerror` (diff) | |
| download | zig-clap-d71e1b6367e9a70a1c344e068caff2a103859b78.tar.gz zig-clap-d71e1b6367e9a70a1c344e068caff2a103859b78.tar.xz zig-clap-d71e1b6367e9a70a1c344e068caff2a103859b78.zip | |
chore: Correct eval branch quota comment in `countParams`
| -rw-r--r-- | clap.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -130,8 +130,8 @@ pub fn parseParamsComptime(comptime str: []const u8) [countParams(str)]Param(Hel | |||
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | fn countParams(str: []const u8) usize { | 132 | fn countParams(str: []const u8) usize { |
| 133 | // See parseParam for reasoning. I would like to remove it from parseParam, but people depend | 133 | // See parseParamEx for reasoning. I would like to remove it from parseParam, but people |
| 134 | // on that function to still work conveniently at comptime, so leaving it for now. | 134 | // depend on that function to still work conveniently at comptime, so leaving it for now. |
| 135 | @setEvalBranchQuota(std.math.maxInt(u32)); | 135 | @setEvalBranchQuota(std.math.maxInt(u32)); |
| 136 | 136 | ||
| 137 | var res: usize = 0; | 137 | var res: usize = 0; |