From 148330e443ffb83e71cb54b0cae8c831b35ee5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Fri, 19 Apr 2024 00:55:39 +0200 Subject: [PATCH] Fix typo in docs for `partialsortperm` (#54137) --- base/sort.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/sort.jl b/base/sort.jl index 37b05d7c8397a..b0b650adcfcaf 100644 --- a/base/sort.jl +++ b/base/sort.jl @@ -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