Skip to content

Commit ccefaa9

Browse files
authored
Update map.ex documentation
1 parent 9753a10 commit ccefaa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elixir/lib/map.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ defmodule Map do
9898
9999
Or any other key:
100100
101-
iex> other_map = %{"three" => 3, "four" => 4}
102-
iex> %{other_map | "three" => "three"}
103-
%{"four" => 4, "three" => "three"}
101+
iex> other_map = %{"three" => 3, "four" => 4, "five" => 5}
102+
iex> %{other_map | "three" => "three", "four" => "four"}
103+
%{"five" => 5, "four" => "four", "three" => "three"}
104104
105105
When a key that does not exist in the map is updated a `KeyError` exception will be raised:
106106

0 commit comments

Comments
 (0)