Skip to content

Commit 99913d7

Browse files
committed
Remove unintended connections between some doctests
1 parent fce9750 commit 99913d7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/elixir/lib/dict.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
"""

lib/elixir/lib/enum.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

lib/elixir/lib/keyword.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)