Skip to content

Commit 60b9a62

Browse files
Changed basedocs.jl and logging.jl to only use jldoctest
1 parent d971131 commit 60b9a62

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

base/docs/basedocs.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -2858,7 +2858,7 @@ objects of length 0 might alias, since there is no reachable mutable content
28582858
from them.
28592859
28602860
# Examples
2861-
```julia-repl
2861+
```jldoctest
28622862
julia> Memory{Float64}(undef, 3)
28632863
3-element Memory{Float64}:
28642864
6.90966e-310
@@ -2893,7 +2893,7 @@ memoryref(::Union{GenericMemory,GenericMemoryRef}, ::Integer)
28932893
Construct an uninitialized [`Vector{T}`](@ref) of length `n`.
28942894
28952895
# Examples
2896-
```julia-repl
2896+
```jldoctest
28972897
julia> Vector{Float64}(undef, 3)
28982898
3-element Vector{Float64}:
28992899
6.90966e-310
@@ -2943,7 +2943,7 @@ Vector{T}(::Missing, n)
29432943
Construct an uninitialized [`Matrix{T}`](@ref) of size `m`×`n`.
29442944
29452945
# Examples
2946-
```julia-repl
2946+
```jldoctest
29472947
julia> Matrix{Float64}(undef, 2, 3)
29482948
2×3 Matrix{Float64}:
29492949
2.36365e-314 2.28473e-314 5.0e-324
@@ -3004,7 +3004,7 @@ match the length or number of `dims`. Here [`undef`](@ref) is
30043004
the [`UndefInitializer`](@ref).
30053005
30063006
# Examples
3007-
```julia-repl
3007+
```jldoctest
30083008
julia> A = Array{Float64, 2}(undef, 2, 3) # N given explicitly
30093009
2×3 Matrix{Float64}:
30103010
6.90198e-310 6.90198e-310 6.90198e-310
@@ -3081,7 +3081,7 @@ would like an uninitialized array. See also [`undef`](@ref),
30813081
an alias for `UndefInitializer()`.
30823082
30833083
# Examples
3084-
```julia-repl
3084+
```jldoctest
30853085
julia> Array{Float64, 1}(UndefInitializer(), 3)
30863086
3-element Vector{Float64}:
30873087
2.2752528595e-314
@@ -3101,7 +3101,7 @@ array-constructor-caller would like an uninitialized array.
31013101
See also: [`missing`](@ref), [`similar`](@ref).
31023102
31033103
# Examples
3104-
```julia-repl
3104+
```jldoctest
31053105
julia> Array{Float64, 1}(undef, 3)
31063106
3-element Vector{Float64}:
31073107
2.2752528595e-314

base/logging/logging.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ filtered, before any other work is done to construct the log record data
117117
structure itself.
118118
119119
# Examples
120-
```julia-repl
120+
```jldoctest
121121
julia> Logging.LogLevel(0) == Logging.Info
122122
true
123123
```

0 commit comments

Comments
 (0)