Skip to content

Commit f395d76

Browse files
PragTobjosevalim
andauthored
Non executable example as it emits error
Co-authored-by: José Valim <[email protected]>
1 parent 31617dd commit f395d76

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/elixir/lib/map.ex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,11 @@ defmodule Map do
316316
317317
iex> Map.fetch!(%{a: 1}, :a)
318318
1
319-
iex> Map.fetch!(%{a: 1}, :b)
320-
** (KeyError) key :b not found in:
321-
...
319+
320+
When the key is missing, an exception is raised:
321+
322+
Map.fetch!(%{a: 1}, :b)
323+
** (KeyError) key :b not found in: %{a: 1}
322324
323325
"""
324326
@spec fetch!(map, key) :: value

0 commit comments

Comments
 (0)