Skip to content

Commit

Permalink
rename two identical variables to same name and remove guard
Browse files Browse the repository at this point in the history
  • Loading branch information
SocialfiPanda committed Nov 7, 2014
1 parent ec53099 commit 50a3b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/lib/string.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ defmodule String do
do_at(next_grapheme(rest), desired_pos, current_pos + 1)
end

defp do_at({char, _}, desired_pos, current_pos) when desired_pos == current_pos do
defp do_at({char, _}, desired_pos, desired_pos) do
char
end

Expand Down

0 comments on commit 50a3b7b

Please sign in to comment.