Skip to content
This repository was archived by the owner on Jan 12, 2020. It is now read-only.

Commit 2221732

Browse files
committed
Fix typo in copy! implementation
1 parent ab71db2 commit 2221732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/_posts/2016-03-27-arrays-iteration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ with different iterator types. We're tempted to write this as
321321
```jl
322322
function copy!(dest, src)
323323
for (idest, isrc) in zip(eachindex(dest), eachindex(src))
324-
dest[idest] = src[idest]
324+
dest[idest] = src[isrc]
325325
end
326326
dest
327327
end

0 commit comments

Comments
 (0)