Skip to content

Commit

Permalink
Update to the latest versions of Elixir and Erlang
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenseacat committed Dec 23, 2023
1 parent aeceb64 commit 9b4bea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
elixir 1.15.7-otp-26
erlang 26.1.2
elixir 1.16.0-otp-26
erlang 26.2.1
2 changes: 1 addition & 1 deletion lib/y2023/day01.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule Y2023.Day01 do
defp find_all_numbers(string, matches) do
[
as_number(Enum.find(matches, &String.starts_with?(string, &1)))
| find_all_numbers(String.slice(string, 1..-1), matches)
| find_all_numbers(String.slice(string, 1..-1//1), matches)
]
end

Expand Down

0 comments on commit 9b4bea4

Please sign in to comment.