Skip to content

Commit 4110374

Browse files
committed
Update broadcast.jl
1 parent dec7ae6 commit 4110374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ end
526526
_bcs1(a::Integer, b::Integer) = a == 1 ? b : (b == 1 ? a : (a == b ? a : throw(DimensionMismatch("arrays could not be broadcast to a common size; got a dimension with lengths $a and $b"))))
527527
_bcs1(a::Integer, b) = a == 1 ? b : (first(b) == 1 && last(b) == a ? b : throw(DimensionMismatch("arrays could not be broadcast to a common size; got a dimension with lengths $a and $(length(b))")))
528528
_bcs1(a, b::Integer) = _bcs1(b, a)
529-
_bcs1(a, b) = _bcsm(b, a) ? axistype(b, a) : (_bcsm(a, b) ? axistype(a, b) : throw(DimensionMismatch("arrays have incompatible axis: $a and $b")))
529+
_bcs1(a, b) = _bcsm(b, a) ? axistype(b, a) : (_bcsm(a, b) ? axistype(a, b) : throw(DimensionMismatch(lazy"arrays have incompatible axis: $a and $b")))
530530
# _bcsm tests whether the second index is consistent with the first
531531
_bcsm(a, b) = a == b || length(b) == 1
532532
_bcsm(a, b::Number) = b == 1

0 commit comments

Comments
 (0)