Skip to content

Commit 08c7f9d

Browse files
lgoettgensKristofferC
authored andcommitted
Fix typo in docs for partialsortperm (#54137)
(cherry picked from commit 148330e)
1 parent d166d2c commit 08c7f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/sort.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@ sort(v::AbstractVector; kws...) = sort!(copymutable(v); kws...)
17221722
## partialsortperm: the permutation to sort the first k elements of an array ##
17231723

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

0 commit comments

Comments
 (0)