@@ -2858,7 +2858,7 @@ objects of length 0 might alias, since there is no reachable mutable content
2858
2858
from them.
2859
2859
2860
2860
# Examples
2861
- ```julia-repl
2861
+ ```jldoctest
2862
2862
julia> Memory{Float64}(undef, 3)
2863
2863
3-element Memory{Float64}:
2864
2864
6.90966e-310
@@ -2893,7 +2893,7 @@ memoryref(::Union{GenericMemory,GenericMemoryRef}, ::Integer)
2893
2893
Construct an uninitialized [`Vector{T}`](@ref) of length `n`.
2894
2894
2895
2895
# Examples
2896
- ```julia-repl
2896
+ ```jldoctest
2897
2897
julia> Vector{Float64}(undef, 3)
2898
2898
3-element Vector{Float64}:
2899
2899
6.90966e-310
@@ -2943,7 +2943,7 @@ Vector{T}(::Missing, n)
2943
2943
Construct an uninitialized [`Matrix{T}`](@ref) of size `m`×`n`.
2944
2944
2945
2945
# Examples
2946
- ```julia-repl
2946
+ ```jldoctest
2947
2947
julia> Matrix{Float64}(undef, 2, 3)
2948
2948
2×3 Matrix{Float64}:
2949
2949
2.36365e-314 2.28473e-314 5.0e-324
@@ -3004,7 +3004,7 @@ match the length or number of `dims`. Here [`undef`](@ref) is
3004
3004
the [`UndefInitializer`](@ref).
3005
3005
3006
3006
# Examples
3007
- ```julia-repl
3007
+ ```jldoctest
3008
3008
julia> A = Array{Float64, 2}(undef, 2, 3) # N given explicitly
3009
3009
2×3 Matrix{Float64}:
3010
3010
6.90198e-310 6.90198e-310 6.90198e-310
@@ -3081,7 +3081,7 @@ would like an uninitialized array. See also [`undef`](@ref),
3081
3081
an alias for `UndefInitializer()`.
3082
3082
3083
3083
# Examples
3084
- ```julia-repl
3084
+ ```jldoctest
3085
3085
julia> Array{Float64, 1}(UndefInitializer(), 3)
3086
3086
3-element Vector{Float64}:
3087
3087
2.2752528595e-314
@@ -3101,7 +3101,7 @@ array-constructor-caller would like an uninitialized array.
3101
3101
See also: [`missing`](@ref), [`similar`](@ref).
3102
3102
3103
3103
# Examples
3104
- ```julia-repl
3104
+ ```jldoctest
3105
3105
julia> Array{Float64, 1}(undef, 3)
3106
3106
3-element Vector{Float64}:
3107
3107
2.2752528595e-314
0 commit comments