Skip to content

Commit c3a27be

Browse files
committed
Do not imply nil is caused by Access
1 parent e10f9fb commit c3a27be

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,8 +2263,7 @@ defmodule Kernel do
22632263
iex> get_in(users, ["john", :age])
22642264
27
22652265
2266-
In case any of the entries in the middle returns `nil`, `nil` will
2267-
be returned as per the `Access` module:
2266+
In case keys any of the keys returns `nil`, `nil` will be returned:
22682267
22692268
iex> users = %{"john" => %{age: 27}, "meg" => %{age: 23}}
22702269
iex> get_in(users, ["unknown", :age])
@@ -2280,9 +2279,6 @@ defmodule Kernel do
22802279
* a function to be invoked next
22812280
22822281
This means `get_in/2` can be extended to provide custom lookups.
2283-
The downside is that functions cannot be stored as keys in the accessed
2284-
data structures.
2285-
22862282
In the example below, we use a function to get all the maps inside
22872283
a list:
22882284

0 commit comments

Comments
 (0)