Skip to content

Commit 22c4f60

Browse files
committed
fix updatex_eachindex.
1 parent 79af57c commit 22c4f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/benchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fillx() = for i = 1:2*dim x[i] = i end
1010
filly() = for i = -dim+1:dim y[i] = i end
1111
updatex() = for i = 1:2*dim x[i] = x[i] + i end
1212
updatey() = for i = -dim+1:dim y[i] = y[i] + i end
13-
updatex_eachindex() = for i in eachindex(x) x[i] + i end
13+
updatex_eachindex() = for i in eachindex(x) x[i] = x[i] + i end
1414
updatey_eachindex() = for i in eachindex(y) y[i] = y[i] + i end
1515

1616
@benchmark fillx()

0 commit comments

Comments
 (0)