We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9753a10 commit 3f01b31Copy full SHA for 3f01b31
lib/elixir/lib/map.ex
@@ -96,11 +96,11 @@ defmodule Map do
96
iex> %{map | one: "one"}
97
%{one: "one", two: 2}
98
99
- Or any other key:
+ Or any other keys:
100
101
- iex> other_map = %{"three" => 3, "four" => 4}
102
- iex> %{other_map | "three" => "three"}
103
- %{"four" => 4, "three" => "three"}
+ iex> other_map = %{"three" => 3, "four" => 4, "five" => 5}
+ iex> %{other_map | "three" => "three", "four" => "four"}
+ %{"five" => 5, "four" => "four", "three" => "three"}
104
105
When a key that does not exist in the map is updated a `KeyError` exception will be raised:
106
0 commit comments