Skip to content

Commit

Permalink
Fix typo in docs for partialsortperm (#54137)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Apr 18, 2024
1 parent 42b3134 commit 148330e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ sort(v::AbstractVector; kws...) = sort!(copymutable(v); kws...)
## partialsortperm: the permutation to sort the first k elements of an array ##

"""
partialsortperm(v, k; by=ientity, lt=isless, rev=false)
partialsortperm(v, k; by=identity, lt=isless, rev=false)
Return a partial permutation `I` of the vector `v`, so that `v[I]` returns values of a fully
sorted version of `v` at index `k`. If `k` is a range, a vector of indices is returned; if
Expand Down

0 comments on commit 148330e

Please sign in to comment.