Skip to content

Commit

Permalink
Changed display of throw_eachindex_mismatch (issue JuliaLang#32890) (J…
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen authored and fredrikekre committed Sep 25, 2019
1 parent 5457323 commit c33cf3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ eachindex(itrs...) = keys(itrs...)
eachindex(A::AbstractVector) = (@_inline_meta(); axes1(A))

@noinline function throw_eachindex_mismatch(::IndexLinear, A...)
throw(DimensionMismatch("all inputs to eachindex must have the same indices, got $(join(LinearIndices.(A), ", ", " and "))"))
throw(DimensionMismatch("all inputs to eachindex must have the same indices, got $(join(eachindex.(A), ", ", " and "))"))
end
@noinline function throw_eachindex_mismatch(::IndexCartesian, A...)
throw(DimensionMismatch("all inputs to eachindex must have the same axes, got $(join(axes.(A), ", ", " and "))"))
Expand Down

0 comments on commit c33cf3e

Please sign in to comment.