File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -201,8 +201,7 @@ defmodule Dict do
201201 iex> d = HashDict.new([a: 1])
202202 ...> Dict.fetch!(d, :a)
203203 1
204- iex> d = HashDict.new([a: 1])
205- ...> Dict.fetch!(d, :b)
204+ iex> Dict.fetch!(d, :b)
206205 ** (KeyError) key not found: :b
207206
208207 """
Original file line number Diff line number Diff line change @@ -372,8 +372,10 @@ defmodule Enum do
372372
373373 iex> Enum.fetch!([2,4,6], 0)
374374 2
375+
375376 iex> Enum.fetch!([2,4,6], 2)
376377 6
378+
377379 iex> Enum.fetch!([2,4,6], 4)
378380 ** (Enum.OutOfBoundsError) out of bounds error
379381
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ defmodule Keyword do
152152
153153 iex> Keyword.fetch!([a: 1], :a)
154154 1
155+
155156 iex> Keyword.fetch!([a: 1], :b)
156157 ** (KeyError) key not found: :b
157158
@@ -357,6 +358,7 @@ defmodule Keyword do
357358
358359 iex> Keyword.update([a: 1], :a, &1 * 2)
359360 [a: 2]
361+
360362 iex> Keyword.update([a: 1], :b, &1 * 2)
361363 ** (KeyError) key not found: :b
362364
You can’t perform that action at this time.
0 commit comments