Skip to content

Commit

Permalink
Improve Enum.with_index/2 docs (#13671)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderhoop authored Jul 2, 2024
1 parent bb902bc commit 2d1f280
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/elixir/lib/enum.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3921,12 +3921,10 @@ defmodule Enum do
Returns the `enumerable` with each element wrapped in a tuple
alongside its index or according to a given function.
May receive a function or an integer offset.
If an `offset` is given, it will index from the given offset instead of from
If an `offset` integer is given, it will index from the given offset instead of from
zero.
If a `function` is given, it will index by invoking the function for each
If an `offset` function is given, it will index by invoking the function for each
element and index (zero-based) of the enumerable.
## Examples
Expand Down

0 comments on commit 2d1f280

Please sign in to comment.