Skip to content

Commit 5edb6e9

Browse files
Polish docs for Enum.with_index/2
1 parent e95c527 commit 5edb6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/enum.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3926,7 +3926,7 @@ defmodule Enum do
39263926
39273927
If a 2-arity function is given as `fun_or_offset`, the function will be invoked
39283928
for each element in `enumerable` as the first argument and with a zero-based
3929-
index as the second. The result of the invocation will be listed.
3929+
index as the second. `with_index/2` returns a list with the result of each invocation.
39303930
39313931
## Examples
39323932

0 commit comments

Comments
 (0)