From 980eb9394ea2eda5d4114e261cf605e7ddd38d2e Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Thu, 16 Nov 2023 20:45:54 +0100 Subject: [PATCH] Revert "Fix errors in `sort` docstring (#52098)" This reverts commit 42c088b8b3e678edd19e5cb9ea54503e43624d06. --- base/sort.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/sort.jl b/base/sort.jl index f35add7a55b35..be5ed28b43ebe 100644 --- a/base/sort.jl +++ b/base/sort.jl @@ -1474,8 +1474,7 @@ end Variant of [`sort!`](@ref) that returns a sorted copy of `v` leaving `v` itself unmodified. -Returns something [`similar`](@ref) to `v` when `v` is an `AbstractArray` and uses -[`collect`](@ref) to support arbitrary non-`AbstractArray` iterables. +Uses `Base.copymutable` to support immutable collections and iterables. !!! compat "Julia 1.10" `sort` of arbitrary iterables requires at least Julia 1.10.