Skip to content

Commit 91a825f

Browse files
committed
Fix doctests
1 parent 96433cf commit 91a825f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

base/operators.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,20 +188,20 @@ largest values and `isgreater` defines a descending total order with `NaN` and
188188
lexigraphically with `isless(y, x)` rather than recursively with itself:
189189
190190
```jldoctest
191-
julia> isgreater(1, NaN) # 1 is greater than NaN
191+
julia> Base.isgreater(1, NaN) # 1 is greater than NaN
192192
true
193193
194-
julia> isgreater((1,), (NaN,)) # But (1,) is not greater than (NaN,)
194+
julia> Base.isgreater((1,), (NaN,)) # But (1,) is not greater than (NaN,)
195195
false
196196
197-
julia> sort([1, 2, 3, NaN]; lt=isgreater)
197+
julia> sort([1, 2, 3, NaN]; lt=Base.isgreater)
198198
4-element Vector{Float64}:
199199
3.0
200200
2.0
201201
1.0
202202
NaN
203203
204-
julia> sort(tuple.([1, 2, 3, NaN]); lt=isgreater)
204+
julia> sort(tuple.([1, 2, 3, NaN]); lt=Base.isgreater)
205205
4-element Vector{Tuple{Float64}}:
206206
(NaN,)
207207
(3.0,)

0 commit comments

Comments
 (0)