Skip to content

Commit

Permalink
show: print types using exported type-aliases (#36107)
Browse files Browse the repository at this point in the history
For example, this prints Array{T,1} as Vector{T} and Array{T,2} as
Matrix{T} and Base.GenericIOBuffer{Array{UInt8,1}} as IOBuffer,
and thus generalizes some existing code.

Co-authored-by: Kristoffer Carlsson <kristoffer.carlsson@chalmers.se>
  • Loading branch information
vtjnash and KristofferC authored Jul 2, 2020
1 parent 153e719 commit 87bab49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ julia> b, c = Distributed.head_and_tail(1:10, 3)
([1, 2, 3], Base.Iterators.Rest{UnitRange{Int64},Int64}(1:10, 3))
julia> collect(c)
7-element Array{Int64,1}:
7-element Vector{Int64}:
4
5
6
Expand Down

0 comments on commit 87bab49

Please sign in to comment.