Skip to content

Commit 58ad472

Browse files
committed
replace nextind with i+1
1 parent 05b055d commit 58ad472

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/abstractarray.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,10 +904,10 @@ function copyto!(dest::AbstractArray, src)
904904
if haslength(src)
905905
length(dest) < length(src) &&
906906
throw(ArgumentError("destination has fewer elements than required"))
907-
I = firstindex(dest)
907+
i = Int(firstindex(dest))
908908
@inbounds for x in src
909-
dest[I] = x
910-
I = nextind(dest, I)
909+
dest[i] = x
910+
i += 1
911911
end
912912
else
913913
destiter = eachindex(dest)

0 commit comments

Comments
 (0)