Skip to content

Commit 8539b5b

Browse files
authored
Minor change in Enum.with/2 docs (#13703)
1 parent 786f959 commit 8539b5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/elixir/lib/enum.ex

+4-4
Original file line numberDiff line numberDiff line change
@@ -3921,11 +3921,11 @@ 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-
If an `offset` integer is given, it will index from the given offset instead of from
3925-
zero.
3924+
If an integer offset is given as `fun_or_offset`, it will index from the given
3925+
offset instead of from zero.
39263926
3927-
If an `offset` function is given, it will index by invoking the function for each
3928-
element and index (zero-based) of the enumerable.
3927+
If a function is given as `fun_or_offset`, it will index by invoking the function
3928+
for each element and index (zero-based) of the enumerable.
39293929
39303930
## Examples
39313931

0 commit comments

Comments
 (0)