File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ defmodule Access do
44
44
nil
45
45
46
46
Since Access is a behaviour, it can be implemented to key-value
47
- data structures. Access requires the key comparison to be
48
- implemented using the `===` operator.
47
+ data structures. The implementation should be added to the
48
+ module that defines the struct being access. Access requires the
49
+ key comparison to be implemented using the `===` operator.
49
50
50
51
## Field-based lookups
51
52
Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ defmodule Protocol do
537
537
if Atom . to_string ( protocol ) =~ "Elixir.Access" do
538
538
:elixir_errors . warn __ENV__ . line , __ENV__ . file ,
539
539
"implementation of the Access protocol is deprecated. For customization of " <>
540
- "the dict [key] syntax, please implement the Dict behaviour instead "
540
+ "the data [key] syntax, please implement the Access behaviour in your struct "
541
541
else
542
542
Protocol . assert_protocol! ( protocol )
543
543
Protocol . __ensure_defimpl__ ( protocol , for , __ENV__ )
You can’t perform that action at this time.
0 commit comments