Update for multi-for loops

This commit is contained in:
dweiller 2023-02-23 14:21:22 +11:00 committed by Felix Queißner
parent 8dca20383c
commit e0fd4e607a

View file

@ -172,7 +172,7 @@ fn parseInternal(comptime Generic: type, comptime MaybeVerb: ?type, args_iterato
try arglist.append(try result_arena_allocator.dupeZ(u8, item));
} else {
var any_shorthands = false;
for (item[1..]) |char, index| {
for (item[1..], 0..) |char, index| {
var option_name = [2]u8{ '-', char };
var found = false;
if (@hasDecl(Generic, "shorthands")) {