Skip to content

Commit

Permalink
Fix Elixir 1.17 Enum.slice/2 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Oct 4, 2024
1 parent 3a95863 commit 5124aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ toolkit for Elixir.
## Compatibility

### EDTF / ISO 8601-2
EDTF.js fully implements [EDTF](http://www.loc.gov/standards/datetime)
EDTF fully implements [EDTF](http://www.loc.gov/standards/datetime)
levels 0, 1, and 2 as specified by ISO 8601-2

## Installation
Expand Down
2 changes: 1 addition & 1 deletion lib/edtf/humanize/aggregate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ defmodule EDTF.Humanize.Aggregate do
end

defp make_list(items, trailing_join) do
[Enum.slice(items, 0..-2) |> Enum.join(", "), List.last(items)]
[Enum.slice(items, 0..-2//1) |> Enum.join(", "), List.last(items)]
|> Enum.join(", #{trailing_join} ")
end
end

0 comments on commit 5124aaf

Please sign in to comment.