Skip to content

Commit

Permalink
fix doctests? I have no idea how
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilith Hafner authored and Lilith Hafner committed Nov 8, 2022
1 parent 8ae6fe5 commit 07e93f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,9 @@ show_type(io::IO, alg::Algorithm) = Base.show_type_name(io, typeof(alg).name)
show_type(io::IO, alg::Small{N}) where N = print(io, "Base.Sort.Small{$N}")

defalg(v::AbstractArray) = DEFAULT_STABLE
defalg(v::AbstractArray{<:Union{Number, Missing}}) = DEFAULT_UNSTABLE
defalg(v::AbstractArray{Missing}) = DEFAULT_UNSTABLE # for method disambiguation
defalg(v::AbstractArray{Union{}}) = DEFAULT_UNSTABLE # for method disambiguation

"""
sort!(v; alg::Algorithm=defalg(v), lt=isless, by=identity, rev::Bool=false, order::Ordering=Forward)
Expand Down

0 comments on commit 07e93f9

Please sign in to comment.