diff options
author | José Valim <jose.valim@dashbit.co> | 2020-02-09 12:57:22 +0100 |
---|---|---|
committer | José Valim <jose.valim@dashbit.co> | 2020-02-09 12:57:22 +0100 |
commit | f2cb13c39b47fa25d62ffc4b5f25caf5cd3c3132 (patch) | |
tree | 7a92f02675c60054b4e08bbf704a2897e3240594 | |
parent | 4abd1128fe4b720fcac466f0ac84f7a38ee1c49d (diff) | |
download | elixir-f2cb13c39b47fa25d62ffc4b5f25caf5cd3c3132.tar.gz |
Clarify Access docs
-rw-r--r-- | lib/elixir/lib/access.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elixir/lib/access.ex b/lib/elixir/lib/access.ex index b85d094dd..810e079b5 100644 --- a/lib/elixir/lib/access.ex +++ b/lib/elixir/lib/access.ex @@ -6,8 +6,8 @@ defmodule Access do keys of any type in a data structure via the `data[key]` syntax. `Access` supports keyword lists (`Keyword`) and maps (`Map`) out - of the box. The key can be of any type and it returns `nil` if - the key does not exist: + of the box. Keywords supports only atoms keys, keys for maps can + be of any type. Both returns `nil` if the key does not exist: iex> keywords = [a: 1, b: 2] iex> keywords[:a] |