Skip to content

Commit 1a9f201

Browse files
committed
Add two links to the guide/documentation in Agent
1 parent 3c64f67 commit 1a9f201

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

getting-started/mix-otp/agent.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ defmodule KV.Bucket do
100100
end
101101
```
102102

103-
Note that we are using a HashDict to store our state instead of a `Map`, because in the current version of Elixir maps are less efficient when holding a large number of keys.
103+
Note that we are using a HashDict to store our state instead of a `Map`, because in the current version of Elixir maps are less efficient when holding a large number of keys. The capture operator, `&`, is introduced in [the Getting Started guide](/getting-started/modules.html#function-capturing).
104104

105105
Now that the `KV.Bucket` module has been defined, our test should pass! You can try it yourself by running: `mix test` .
106106

@@ -156,7 +156,7 @@ def delete(bucket, key) do
156156
end
157157
```
158158

159-
Now it is your turn to write a test for the functionality above! Also, be sure to explore the documentation for agents to learn more about them.
159+
Now it is your turn to write a test for the functionality above! Also, be sure to explore [the documentation for `Agents`](/docs/stable/elixir/#!Agent.html) to learn more about them.
160160

161161
## Client/Server in agents
162162

0 commit comments

Comments
 (0)