Skip to content

Commit d0f7aeb

Browse files
committed
Fix a doctest failure
1 parent df1fbcd commit d0f7aeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/reinterpretarray.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ julia> A = [1 2; 3 4]
9696
1 2
9797
3 4
9898
99-
julia> reinterpret(reshape, Complex{Int}, A)
99+
julia> reinterpret(reshape, Complex{Int}, A) # the result is a vector
100100
2-element reinterpret(reshape, Complex{$Int}, ::Matrix{$Int}):
101101
1 + 3im
102102
2 + 4im
103103
104-
julia> a = [(1,2,3), (4,5,6)]
104+
julia> a = [(1,2,3), (4,5,6)]
105105
2-element Vector{Tuple{$Int, $Int, $Int}}:
106106
(1, 2, 3)
107107
(4, 5, 6)
108108
109-
julia> reinterpret(reshape, Int, a)
109+
julia> reinterpret(reshape, Int, a) # the result is a matrix
110110
3×2 reinterpret(reshape, $Int, ::Vector{Tuple{$Int, $Int, $Int}}):
111111
1 4
112112
2 5

0 commit comments

Comments
 (0)