Skip to content

Commit 4f66ee5

Browse files
committed
remove redundant "dimensions must match"
thanks @mcabbott
1 parent cf1a361 commit 4f66ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/indices.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function throw_promote_shape_mismatch(a::Tuple{T,Vararg{T}},
114114
_has_axes = T <: AbstractUnitRange
115115
_normalize(d) = map(x -> _has_axes ? (firstindex(x):lastindex(x)) : x, d)
116116
_things = _has_axes ? "axes" : "size"
117-
msg = "dimensions must match: a has $(_things) $(_normalize(a))"
117+
msg = "a has $(_things) $(_normalize(a))"
118118
if b nothing
119119
msg *= ", b has $(_things) $(_normalize(b))"
120120
end

0 commit comments

Comments
 (0)