Skip to content

Commit

Permalink
remove redundant "dimensions must match"
Browse files Browse the repository at this point in the history
thanks @mcabbott
  • Loading branch information
tpapp committed Jun 23, 2021
1 parent cf1a361 commit 4f66ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/indices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function throw_promote_shape_mismatch(a::Tuple{T,Vararg{T}},
_has_axes = T <: AbstractUnitRange
_normalize(d) = map(x -> _has_axes ? (firstindex(x):lastindex(x)) : x, d)
_things = _has_axes ? "axes" : "size"
msg = "dimensions must match: a has $(_things) $(_normalize(a))"
msg = "a has $(_things) $(_normalize(a))"
if b nothing
msg *= ", b has $(_things) $(_normalize(b))"
end
Expand Down

0 comments on commit 4f66ee5

Please sign in to comment.