Skip to content

Commit ea1cc8f

Browse files
committed
Fix doctest line numbers
and temporarily ignore relative links in linkcheck
1 parent 8b5a844 commit ea1cc8f

11 files changed

+23
-22
lines changed

base/array.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@ julia> deleteat!([6, 5, 4, 3, 2, 1], [true, false, true, false, true, false])
865865
julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2))
866866
ERROR: ArgumentError: indices must be unique and sorted
867867
Stacktrace:
868-
[1] _deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:873
869-
[2] deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:860
868+
[1] _deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:885
869+
[2] deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:872
870870
```
871871
"""
872872
deleteat!(a::Vector, inds) = _deleteat!(a, inds)

base/docs/helpdb/Base.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ If `T` does not have a specific size, an error is thrown.
341341
julia> sizeof(Base.LinAlg.LU)
342342
ERROR: argument is an abstract type; size is indeterminate
343343
Stacktrace:
344-
[1] sizeof(::Type{T} where T) at ./essentials.jl:160
344+
[1] sizeof(::Type{T} where T) at ./essentials.jl:159
345345
```
346346
"""
347347
sizeof(::Type)
@@ -1937,7 +1937,7 @@ julia> convert(Int, 3.0)
19371937
julia> convert(Int, 3.5)
19381938
ERROR: InexactError()
19391939
Stacktrace:
1940-
[1] convert(::Type{Int64}, ::Float64) at ./float.jl:680
1940+
[1] convert(::Type{Int64}, ::Float64) at ./float.jl:679
19411941
```
19421942
19431943
If `T` is a [`AbstractFloat`](@ref) or [`Rational`](@ref) type,

base/math.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ julia> √(a^2 + a^2) # a^2 overflows
449449
ERROR: DomainError:
450450
sqrt will only return a complex result if called with a complex argument. Try sqrt(complex(x)).
451451
Stacktrace:
452-
[1] sqrt(::Int64) at ./math.jl:431
452+
[1] sqrt(::Int64) at ./math.jl:434
453453
```
454454
"""
455455
hypot(x::Number, y::Number) = hypot(promote(x, y)...)

doc/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ makedocs(
121121
clean = false,
122122
doctest = "doctest" in ARGS,
123123
linkcheck = "linkcheck" in ARGS,
124-
linkcheck_ignore = ["https://bugs.kde.org/show_bug.cgi?id=136779"], # fails to load from nanosoldier?
124+
linkcheck_ignore = ["../stdlib/dates.md", # until linkcheck gets fixed for relative refs
125+
"https://bugs.kde.org/show_bug.cgi?id=136779"], # fails to load from nanosoldier?
125126
strict = true,
126127
checkdocs = :none,
127128
format = "pdf" in ARGS ? :latex : :html,

doc/src/manual/complex-and-rational-numbers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ julia> sqrt(-1)
143143
ERROR: DomainError:
144144
sqrt will only return a complex result if called with a complex argument. Try sqrt(complex(x)).
145145
Stacktrace:
146-
[1] sqrt(::Int64) at ./math.jl:431
146+
[1] sqrt(::Int64) at ./math.jl:434
147147
148148
julia> sqrt(-1 + 0im)
149149
0.0 + 1.0im
@@ -283,8 +283,8 @@ Trying to construct a [`NaN`](@ref) rational value, however, is not:
283283
julia> 0//0
284284
ERROR: ArgumentError: invalid rational: zero(Int64)//zero(Int64)
285285
Stacktrace:
286-
[1] Rational{Int64}(::Int64, ::Int64) at ./rational.jl:8
287-
[2] //(::Int64, ::Int64) at ./rational.jl:35
286+
[1] Rational{Int64}(::Int64, ::Int64) at ./rational.jl:13
287+
[2] //(::Int64, ::Int64) at ./rational.jl:40
288288
```
289289

290290
As usual, the promotion system makes interactions with other numeric types effortless:

doc/src/manual/constructors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Point{Int64}(1, 2)
301301
julia> Point{Int64}(1.0,2.5) ## explicit T ##
302302
ERROR: InexactError()
303303
Stacktrace:
304-
[1] convert(::Type{Int64}, ::Float64) at ./float.jl:680
304+
[1] convert(::Type{Int64}, ::Float64) at ./float.jl:679
305305
[2] Point{Int64}(::Float64, ::Float64) at ./none:2
306306
307307
julia> Point{Float64}(1.0, 2.5) ## explicit T ##

doc/src/manual/control-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ julia> sqrt(-1)
571571
ERROR: DomainError:
572572
sqrt will only return a complex result if called with a complex argument. Try sqrt(complex(x)).
573573
Stacktrace:
574-
[1] sqrt(::Int64) at ./math.jl:431
574+
[1] sqrt(::Int64) at ./math.jl:434
575575
```
576576

577577
You may define your own exceptions in the following way:

doc/src/manual/conversion-and-promotion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ false
121121
julia> convert(Bool, 1im)
122122
ERROR: InexactError()
123123
Stacktrace:
124-
[1] convert(::Type{Bool}, ::Complex{Int64}) at ./complex.jl:23
124+
[1] convert(::Type{Bool}, ::Complex{Int64}) at ./complex.jl:31
125125
126126
julia> convert(Bool, 0im)
127127
false

doc/src/manual/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ julia> sqrt(-2.0)
228228
ERROR: DomainError:
229229
sqrt will only return a complex result if called with a complex argument. Try sqrt(complex(x)).
230230
Stacktrace:
231-
[1] sqrt(::Float64) at ./math.jl:422
231+
[1] sqrt(::Float64) at ./math.jl:425
232232
233233
julia> 2^-5
234234
ERROR: DomainError:

doc/src/manual/mathematical-operations.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,22 +397,22 @@ julia> Int8(127)
397397
julia> Int8(128)
398398
ERROR: InexactError()
399399
Stacktrace:
400-
[1] Int8(::Int64) at ./sysimg.jl:77
400+
[1] Int8(::Int64) at ./sysimg.jl:24
401401
402402
julia> Int8(127.0)
403403
127
404404
405405
julia> Int8(3.14)
406406
ERROR: InexactError()
407407
Stacktrace:
408-
[1] convert(::Type{Int8}, ::Float64) at ./float.jl:659
409-
[2] Int8(::Float64) at ./sysimg.jl:77
408+
[1] convert(::Type{Int8}, ::Float64) at ./float.jl:658
409+
[2] Int8(::Float64) at ./sysimg.jl:24
410410
411411
julia> Int8(128.0)
412412
ERROR: InexactError()
413413
Stacktrace:
414-
[1] convert(::Type{Int8}, ::Float64) at ./float.jl:659
415-
[2] Int8(::Float64) at ./sysimg.jl:77
414+
[1] convert(::Type{Int8}, ::Float64) at ./float.jl:658
415+
[2] Int8(::Float64) at ./sysimg.jl:24
416416
417417
julia> 127 % Int8
418418
127
@@ -426,8 +426,8 @@ julia> round(Int8,127.4)
426426
julia> round(Int8,127.6)
427427
ERROR: InexactError()
428428
Stacktrace:
429-
[1] trunc(::Type{Int8}, ::Float64) at ./float.jl:652
430-
[2] round(::Type{Int8}, ::Float64) at ./float.jl:338
429+
[1] trunc(::Type{Int8}, ::Float64) at ./float.jl:651
430+
[2] round(::Type{Int8}, ::Float64) at ./float.jl:337
431431
```
432432

433433
See [Conversion and Promotion](@ref conversion-and-promotion) for how to define your own conversions and promotions.

doc/src/manual/types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ must be convertible to `Int`:
345345
julia> Foo((), 23.5, 1)
346346
ERROR: InexactError()
347347
Stacktrace:
348-
[1] convert(::Type{Int64}, ::Float64) at ./float.jl:680
348+
[1] convert(::Type{Int64}, ::Float64) at ./float.jl:679
349349
[2] Foo(::Tuple{}, ::Float64, ::Int64) at ./none:2
350350
```
351351

@@ -651,7 +651,7 @@ ERROR: MethodError: Cannot `convert` an object of type Float64 to an object of t
651651
This may have arisen from a call to the constructor Point{Float64}(...),
652652
since type constructors fall back to convert methods.
653653
Stacktrace:
654-
[1] Point{Float64}(::Float64) at ./sysimg.jl:77
654+
[1] Point{Float64}(::Float64) at ./sysimg.jl:24
655655
656656
julia> Point{Float64}(1.0,2.0,3.0)
657657
ERROR: MethodError: no method matching Point{Float64}(::Float64, ::Float64, ::Float64)

0 commit comments

Comments
 (0)