Skip to content

Commit

Permalink
2022: Address compiler errors for Nim 2.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvw committed Nov 19, 2024
1 parent 5a04238 commit cf1f1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2022/puzzle_11.nim
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ proc monkeyBusiness(
): int =
var monkeys = monkeysInit

var inspectedItems = newSeqWith[int](monkeys.len, 0)
var inspectedItems = newSeqWith(monkeys.len, 0)
for round in 1 .. rounds:
for monkey in monkeys.mitems:
while monkey.items.len > 0:
Expand Down

0 comments on commit cf1f1ed

Please sign in to comment.