Skip to content

Commit 38a7c77

Browse files
authored
Fix with_index/2 example (#12882)
1 parent 682b6d5 commit 38a7c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/cheatsheets/enum-cheat.cheatmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ iex> Enum.with_index(cart)
551551
### [with_index(enum, fun)](`Enum.with_index/2`)
552552

553553
```elixir
554-
iex> Enum.with_index(cart, fun, fn item, index ->
554+
iex> Enum.with_index(cart, fn item, index ->
555555
...> {item.fruit, index}
556556
...> end)
557557
[

0 commit comments

Comments
 (0)