Skip to content

Commit aafc248

Browse files
fix ===/2 arity in docs (#15353)
1 parent b8723fe commit aafc248

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/elixir/lib/keyword.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ defmodule Keyword do
965965
iex> Keyword.equal?([a: 1, b: 2, a: 3], [b: 2, a: 3, a: 1])
966966
true
967967
968-
Comparison between values is done with `===/3`,
968+
Comparison between values is done with `===/2`,
969969
which means integers are not equivalent to floats:
970970
971971
iex> Keyword.equal?([a: 1.0], [a: 1])

lib/elixir/lib/map.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ defmodule Map do
11091109
iex> Map.equal?(%{a: 1, b: 2}, %{b: 1, a: 2})
11101110
false
11111111
1112-
Comparison between keys and values is done with `===/3`,
1112+
Comparison between keys and values is done with `===/2`,
11131113
which means integers are not equivalent to floats:
11141114
11151115
iex> Map.equal?(%{a: 1.0}, %{a: 1})

0 commit comments

Comments
 (0)