Skip to content

Commit

Permalink
Merge pull request JuliaLang#28232 from JuliaLang/cb/copytofix
Browse files Browse the repository at this point in the history
Fix error message in copyto!(::AbstractArray, ::Any)
  • Loading branch information
carlobaldassi committed Jul 23, 2018
2 parents fdad505 + 886308d commit 88a8c86
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 @@ -653,7 +653,7 @@ function copyto!(dest::AbstractArray, src)
y = iterate(destiter)
for x in src
y === nothing &&
throw(ArgumentError(string("source has fewer elements than required")))
throw(ArgumentError(string("destination has fewer elements than required")))
dest[y[1]] = x
y = iterate(destiter, y[2])
end
Expand Down

0 comments on commit 88a8c86

Please sign in to comment.