Skip to content

Commit 353d759

Browse files
committed
Revert "also hide eltype in compact show"
This reverts commit 0da9e3f.
1 parent 2a1c25a commit 353d759

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

base/slicearray.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ julia> s[1]
117117
2
118118
3
119119
120-
julia> eachslice(m, dims=1, drop=false) # keyword changes outer size
120+
julia> eachslice(m, dims=1, drop=false) # keyword changes size of container
121121
3×1 eachslice(::Matrix{Int64}, dims = 1, drop = false) of 3-element slices with eltype Int64:
122122
[1, 2, 3]
123123
[4, 5, 6]
@@ -295,8 +295,3 @@ function showarg(io::IO, s::Slices, toplevel)
295295
toplevel && print(io, " of ", dims2string(_element_size(s)), " slices with eltype ", eltype(eltype(s)))
296296
return nothing
297297
end
298-
299-
# This affects compact printing, 2-arg show. By default an array of arrays prints e.g. `Vector{Int}[[1,2], [3,4]]`.
300-
# Since the element type for Slices ia a complicated SubArray, this hides it, while still printing inner types
301-
# if nontrivial. Thus `(eachcol(Float32[1 2; 3 4]),)` prints `([Float32[1.0, 3.0], Float32[2.0, 4.0]],)`
302-
typeinfo_prefix(io::IO, @nospecialize s::Slices) = ("", true)

0 commit comments

Comments
 (0)