Skip to content

Commit

Permalink
Fixes warning caused by 1..-1
Browse files Browse the repository at this point in the history
Related to upstream issue appcues#57
  • Loading branch information
drobban committed Jan 18, 2024
1 parent e837c20 commit 998dcee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exconstructor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,6 @@ defmodule ExConstructor do
@spec lcfirst(String.t()) :: String.t()
defp lcfirst(str) do
first = String.slice(str, 0..0) |> String.downcase()
first <> String.slice(str, 1..-1)
first <> String.slice(str, 1..-1//1)
end
end

0 comments on commit 998dcee

Please sign in to comment.