Skip to content

Commit

Permalink
fix: better wording for the fix2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
ghyatzo committed Jan 10, 2025
1 parent 7326e87 commit 58b60e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/iterators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1673,9 +1673,10 @@ end
"""
nth(n::Integer)
return a function that gets the `n`-th element from any iterator passed to it.
Fixes the second element with
Return a function that gets the `n`-th element from any iterator passed to it.
Throw a `BoundsError`[@ref] if not existing.
Fixes the second element. Equivalent to `Base.Fix2(nth, n)`.
Will advance any `Stateful`[@ref] iterator.
See also: [`nth`](@ref), [`Base.Fix2`](@ref)
Expand Down

0 comments on commit 58b60e8

Please sign in to comment.