summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elixir/lib/code/typespec.ex8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/elixir/lib/code/typespec.ex b/lib/elixir/lib/code/typespec.ex
index ffeafdc96..9ad60d349 100644
--- a/lib/elixir/lib/code/typespec.ex
+++ b/lib/elixir/lib/code/typespec.ex
@@ -408,11 +408,11 @@ defmodule Code.Typespec do
defp erl_to_ex_var(var) do
case Atom.to_string(var) do
- <<"_", c::binary-1, rest::binary>> ->
- String.to_atom("_#{String.downcase(c)}#{rest}")
+ <<"_", c::utf8, rest::binary>> ->
+ String.to_atom("_#{String.downcase(<<c::utf8>>)}#{rest}")
- <<c::binary-1, rest::binary>> ->
- String.to_atom("#{String.downcase(c)}#{rest}")
+ <<c::utf8, rest::binary>> ->
+ String.to_atom("#{String.downcase(<<c::utf8>>)}#{rest}")
end
end