Skip to content

Commit 148330e

Browse files
authored
Fix typo in docs for partialsortperm (#54137)
1 parent 42b3134 commit 148330e

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
@@ -1732,7 +1732,7 @@ sort(v::AbstractVector; kws...) = sort!(copymutable(v); kws...)
17321732
## partialsortperm: the permutation to sort the first k elements of an array ##
17331733

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

0 commit comments

Comments
 (0)