Skip to content

Commit 2e58e79

Browse files
committed
Implement suggestion on message
1 parent 276ee6e commit 2e58e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/keyword.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ defmodule Keyword do
436436
[:a, :b, :a]
437437
438438
iex> Keyword.keys([{:a, 1}, {"b", 2}, {:c, 3}])
439-
** (ArgumentError) expected a keyword list, but an element in the list is not a keyword; got: {"b", 2}
439+
** (ArgumentError) expected a keyword list, but an element in the list is not a two-element tuple with an atom key; got: {"b", 2}
440440
441441
"""
442442
@spec keys(t) :: [key]
@@ -448,7 +448,7 @@ defmodule Keyword do
448448

449449
element ->
450450
raise ArgumentError,
451-
"expected a keyword list, but an element in the list is not a keyword; got: #{
451+
"expected a keyword list, but an element in the list is not a two-element tuple with an atom key; got: #{
452452
inspect(element)
453453
}"
454454
end,

0 commit comments

Comments
 (0)