summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2020-01-11 12:24:32 +0100
committerGitHub <noreply@github.com>2020-01-11 12:24:32 +0100
commit86e58de274e011adfd44cb877cf0a7b5dfe63429 (patch)
tree5a7371a070ae0da295dd5ef6ce9957d430cc87d8
parente5ec17226cfbb648c531b9a1933d1069498e8276 (diff)
downloadelixir-emj/map-dot-guard.tar.gz
Apply suggestions from code reviewemj/map-dot-guard
-rw-r--r--lib/elixir/src/elixir_expand.erl2
-rw-r--r--lib/elixir/test/elixir/kernel_test.exs2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/elixir/src/elixir_expand.erl b/lib/elixir/src/elixir_expand.erl
index aba9c5a20..b854536fc 100644
--- a/lib/elixir/src/elixir_expand.erl
+++ b/lib/elixir/src/elixir_expand.erl
@@ -1299,7 +1299,7 @@ format_error({no_parens_nullary_remote, Remote, Fun}) ->
[elixir_aliases:inspect(Remote), Fun]);
format_error({parens_map_lookup_guard, Map, Field}) ->
io_lib:format("cannot invoke remote function in guard. "
- "If you wanted to do a map lookup instead, please remove parens from ~ts.~ts()",
+ "If you want to do a map lookup instead, please remove parens from ~ts.~ts()",
['Elixir.Macro':to_string(Map), Field]);
format_error({super_in_genserver, {Name, Arity}}) ->
io_lib:format("calling super for GenServer callback ~ts/~B is deprecated", [Name, Arity]);
diff --git a/lib/elixir/test/elixir/kernel_test.exs b/lib/elixir/test/elixir/kernel_test.exs
index 1140d7833..b8863f57e 100644
--- a/lib/elixir/test/elixir/kernel_test.exs
+++ b/lib/elixir/test/elixir/kernel_test.exs
@@ -467,7 +467,7 @@ defmodule KernelTest do
message =
"cannot invoke remote function in guard. " <>
- "If you wanted to do a map lookup instead, please remove parens from map.field()"
+ "If you want to do a map lookup instead, please remove parens from map.field()"
assert_raise CompileError, Regex.compile!(message), fn ->
defmodule MapDot do