Skip to content

Commit

Permalink
Fix errors in sort docstring (#52098)
Browse files Browse the repository at this point in the history
Two chagnes wrapped into one `Base.copymutable` => `Base.copymutable` &
`collect` and `Base.copymutable` => `similar` & words.

Followup for #52086 and #46104; also fixes #51932 (though we still may
want to make `copymutable` public at some point)

---------

Co-authored-by: Jameson Nash <[email protected]>
  • Loading branch information
LilithHafner and vtjnash authored Nov 10, 2023
1 parent 29d78fa commit 42c088b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,8 @@ end
Variant of [`sort!`](@ref) that returns a sorted copy of `v` leaving `v` itself unmodified.
Uses `Base.copymutable` to support immutable collections and iterables.
Returns something [`similar`](@ref) to `v` when `v` is an `AbstractArray` and uses
[`collect`](@ref) to support arbitrary non-`AbstractArray` iterables.
!!! compat "Julia 1.10"
`sort` of arbitrary iterables requires at least Julia 1.10.
Expand Down

0 comments on commit 42c088b

Please sign in to comment.