Skip to content

Commit 2d1f280

Browse files
authored
Improve Enum.with_index/2 docs (#13671)
1 parent bb902bc commit 2d1f280

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/elixir/lib/enum.ex

+2-4
Original file line numberDiff line numberDiff line change
@@ -3921,12 +3921,10 @@ defmodule Enum do
39213921
Returns the `enumerable` with each element wrapped in a tuple
39223922
alongside its index or according to a given function.
39233923
3924-
May receive a function or an integer offset.
3925-
3926-
If an `offset` is given, it will index from the given offset instead of from
3924+
If an `offset` integer is given, it will index from the given offset instead of from
39273925
zero.
39283926
3929-
If a `function` is given, it will index by invoking the function for each
3927+
If an `offset` function is given, it will index by invoking the function for each
39303928
element and index (zero-based) of the enumerable.
39313929
39323930
## Examples

0 commit comments

Comments
 (0)