Skip to content

Commit ac06098

Browse files
committed
Minor bugfix in show method.
1 parent 9641869 commit ac06098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Base.@propagate_inbounds Base.getindex(A::Const, i1::Integer) = const_arrayref(A
223223
Base.show(io::IO, a::CLDeviceVector) =
224224
print(io, "$(length(a))-element device array at $(pointer(a))")
225225
Base.show(io::IO, a::CLDeviceArray) =
226-
print(io, "$(join(a.shape, '×')) device array at $(pointer(a))")
226+
print(io, "$(join(size(a), '×')) device array at $(pointer(a))")
227227

228228
Base.show(io::IO, mime::MIME"text/plain", a::CLDeviceArray) = show(io, a)
229229

0 commit comments

Comments
 (0)