Skip to content

Commit

Permalink
Merge branch 'aoc2' of https://github.com/Akuli/jou into aoc2
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Dec 3, 2023
2 parents 5e9daa4 + 39d396e commit 3688833
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 3688833

Please sign in to comment.