Skip to content

Commit

Permalink
also hide eltype in compact show
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed May 19, 2022
1 parent 4723917 commit 0da9e3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/slicearray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,6 @@ function showarg(io::IO, s::Slices, toplevel)
toplevel && print(io, " of ", dims2string(_element_size(s)), " slices with eltype ", eltype(eltype(s)))
return nothing
end

# This hides the SubArray type in compact printing, e.g. (0, eachcol(Float32[1 2; 3 4]), 5)
typeinfo_prefix(io::IO, @nospecialize s::Slices) = ("", true)

0 comments on commit 0da9e3f

Please sign in to comment.