Skip to content

Commit

Permalink
Docs: add link to capture syntax (#13828)
Browse files Browse the repository at this point in the history
This should provide a link for a reader to investigate more about that
new syntax shown in the example.
  • Loading branch information
hauleth committed Sep 15, 2024
1 parent 400ed5d commit 05d9735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/pages/getting-started/recursion.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ iex> Enum.map([1, 2, 3], fn x -> x * 2 end)
[2, 4, 6]
```

Or, using the capture syntax:
Or, using the [capture syntax](`Kernel.SpecialForms.&/1`):

```elixir
iex> Enum.reduce([1, 2, 3], 0, &+/2)
Expand Down

0 comments on commit 05d9735

Please sign in to comment.