Skip to content

Commit 90003ad

Browse files
Fix up doctests
1 parent a4a21a5 commit 90003ad

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

base/array.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ julia> deleteat!([6, 5, 4, 3, 2, 1], 1:2:5)
737737
738738
julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2))
739739
ERROR: ArgumentError: indices must be unique and sorted
740-
in deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:747
740+
in deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:753
741741
```
742742
"""
743743
function deleteat!(a::Vector, inds)

base/docs/helpdb/Base.jl

+14-14
Original file line numberDiff line numberDiff line change
@@ -577,16 +577,16 @@ julia> ones(A)
577577
1 1
578578
1 1
579579
580-
julia> ones(A, Float64)
580+
julia> ones(A, Float64)
581581
2×2 Array{Float64,2}:
582-
1. 1.
583-
1. 1.
582+
1.0 1.0
583+
1.0 1.0
584584
585-
julia> ones(A, Bool, (3,))
586-
3-element Array{Bool,1}:
587-
true
588-
true
589-
true
585+
julia> ones(A, Bool, (3,))
586+
3-element Array{Bool,1}:
587+
true
588+
true
589+
true
590590
```
591591
See also [`zeros`](@ref), [`similar`](@ref).
592592
"""
@@ -2726,16 +2726,16 @@ julia> zeros(A)
27262726
0 0
27272727
0 0
27282728
2729-
julia> zeros(A, Float64)
2729+
julia> zeros(A, Float64)
27302730
2×2 Array{Float64,2}:
27312731
0.0 0.0
27322732
0.0 0.0
27332733
2734-
julia> zeros(A, Bool, (3,))
2735-
3-element Array{Bool,1}:
2736-
false
2737-
false
2738-
false
2734+
julia> zeros(A, Bool, (3,))
2735+
3-element Array{Bool,1}:
2736+
false
2737+
false
2738+
false
27392739
```
27402740
See also [`ones`](@ref), [`similar`](@ref).
27412741
"""

base/linalg/eigen.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ julia> A = [0 im; -1 0]
208208
209209
julia> eigmax(A)
210210
ERROR: DomainError:
211-
in #eigmax#30(::Bool, ::Bool, ::Function, ::Array{Complex{Int64},2}) at ./linalg/eigen.jl:218
211+
in #eigmax#36(::Bool, ::Bool, ::Function, ::Array{Complex{Int64},2}) at ./linalg/eigen.jl:218
212212
in eigmax(::Array{Complex{Int64},2}) at ./linalg/eigen.jl:216
213213
```
214214
"""
@@ -249,7 +249,7 @@ julia> A = [0 im; -1 0]
249249
250250
julia> eigmin(A)
251251
ERROR: DomainError:
252-
in #eigmin#31(::Bool, ::Bool, ::Function, ::Array{Complex{Int64},2}) at ./linalg/eigen.jl:259
252+
in #eigmin#37(::Bool, ::Bool, ::Function, ::Array{Complex{Int64},2}) at ./linalg/eigen.jl:259
253253
in eigmin(::Array{Complex{Int64},2}) at ./linalg/eigen.jl:257
254254
```
255255
"""

0 commit comments

Comments
 (0)