Skip to content

Commit 21befde

Browse files
committed
Fix whitespace in iex> docstrings
1 parent e4f7ee4 commit 21befde

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/elixir/lib/access.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,9 @@ defmodule Access do
10381038
iex> list = [%{name: "john", salary: 10}, %{name: "francine", salary: 30}]
10391039
iex> get_in(list, [Access.find(&(&1.salary > 20)), :name])
10401040
"francine"
1041-
iex> get_and_update_in(list, [Access.find(&(&1.salary <= 40)), :name], fn prev ->
1042-
...> {prev, String.upcase(prev)}
1043-
...> end)
1041+
iex> get_and_update_in(list, [Access.find(&(&1.salary <= 40)), :name], fn prev ->
1042+
...> {prev, String.upcase(prev)}
1043+
...> end)
10441044
{"john", [%{name: "JOHN", salary: 10}, %{name: "francine", salary: 30}]}
10451045
10461046
`find/1` can also be used to pop the first found element out of a list or
@@ -1067,7 +1067,7 @@ defmodule Access do
10671067
10681068
An error is raised if the accessed structure is not a list:
10691069
1070-
iex> get_in(%{}, [Access.find(fn a -> a == 10 end)])
1070+
iex> get_in(%{}, [Access.find(fn a -> a == 10 end)])
10711071
** (RuntimeError) Access.find/1 expected a list, got: %{}
10721072
"""
10731073
@doc since: "1.17.0"

lib/elixir/lib/calendar/date.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defmodule Date do
3636
using `Enum.min/2` and `Enum.max/2` functions to get the minimum and
3737
maximum date of an `Enum`. For example:
3838
39-
iex> Enum.min([~D[2017-03-31], ~D[2017-04-01]], Date)
39+
iex> Enum.min([~D[2017-03-31], ~D[2017-04-01]], Date)
4040
~D[2017-03-31]
4141
4242
## Using epochs

0 commit comments

Comments
 (0)