Skip to content

Commit 16eac65

Browse files
committed
The Access is not a protocol
1 parent 7113ccf commit 16eac65

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ defmodule Kernel do
16431643
@doc """
16441644
Gets a value from a nested structure.
16451645
1646-
Uses the `Access` protocol to traverse the structures
1646+
Uses the `Access` module to traverse the structures
16471647
according to the given `keys`, unless the `key` is a
16481648
function.
16491649
@@ -1662,7 +1662,7 @@ defmodule Kernel do
16621662
27
16631663
16641664
In case any of entries in the middle returns `nil`, `nil` will be returned
1665-
as per the Access protocol:
1665+
as per the Access module:
16661666
16671667
iex> users = %{"john" => %{age: 27}, "meg" => %{age: 23}}
16681668
iex> get_in(users, ["unknown", :age])
@@ -1702,7 +1702,7 @@ defmodule Kernel do
17021702
@doc """
17031703
Puts a value in a nested structure.
17041704
1705-
Uses the `Access` protocol to traverse the structures
1705+
Uses the `Access` module to traverse the structures
17061706
according to the given `keys`, unless the `key` is a
17071707
function. If the key is a function, it will be invoked
17081708
as specified in `get_and_update_in/3`.
@@ -1724,7 +1724,7 @@ defmodule Kernel do
17241724
@doc """
17251725
Updates a key in a nested structure.
17261726
1727-
Uses the `Access` protocol to traverse the structures
1727+
Uses the `Access` module to traverse the structures
17281728
according to the given `keys`, unless the `key` is a
17291729
function. If the key is a function, it will be invoked
17301730
as specified in `get_and_update_in/3`.
@@ -1749,7 +1749,7 @@ defmodule Kernel do
17491749
It expects a tuple to be returned, containing the value
17501750
retrieved and the update one.
17511751
1752-
Uses the `Access` protocol to traverse the structures
1752+
Uses the `Access` module to traverse the structures
17531753
according to the given `keys`, unless the `key` is a
17541754
function.
17551755

0 commit comments

Comments
 (0)