Skip to content

Commit

Permalink
Update examples/aoc2023/day01/part2.jou
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Dec 3, 2023
1 parent a8e9f0a commit 39d396e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/aoc2023/day01/part2.jou
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def parse_prefix_digit(s: byte*) -> int:
if is_ascii_digit(s[0]):
return s[0] - '0'

strings = [NULL as byte*, "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
strings = ["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
for i = 1; i <= 9; i++:
if starts_with(s, strings[i]):
return i
Expand Down

0 comments on commit 39d396e

Please sign in to comment.