diff options
Diffstat (limited to 'aoc23/day01_test.go')
-rw-r--r-- | aoc23/day01_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aoc23/day01_test.go b/aoc23/day01_test.go index 21f66ba..4ab3ee2 100644 --- a/aoc23/day01_test.go +++ b/aoc23/day01_test.go @@ -11,7 +11,7 @@ func findDigits(text string, parseWords bool) []int { buf := "" for _, c := range text { if isDigit(c) { - n := requireInt(string(c)) + n := atoi(string(c)) ints = append(ints, n) } else if parseWords { buf += string(c) |