Skip to content

Commit

Permalink
fixup! print Array{T,1} as Vector{T} and Array{T,2} as Matrix{T}
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Jun 15, 2020
1 parent 35f0a67 commit ce70e2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ julia> a = [4, 3, 2, 1]; popat!(a, 2)
3
julia> a
3-element Array{Int64,1}:
3-element Vector{Int64}:
4
2
1
Expand All @@ -1180,7 +1180,7 @@ julia> popat!(a, 4, missing)
missing
julia> popat!(a, 4)
ERROR: BoundsError: attempt to access 3-element Array{Int64,1} at index [4]
ERROR: BoundsError: attempt to access 3-element Vector{Int64} at index [4]
[...]
```
"""
Expand Down
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/uniformscaling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ julia> J*A
6.0 8.0
julia> J[1:2, 1:2]
2×2 Array{Float64,2}:
2×2 Matrix{Float64}:
2.0 0.0
0.0 2.0
```
Expand Down

0 comments on commit ce70e2e

Please sign in to comment.