Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Jun 19, 2024
1 parent 7038910 commit 3eacfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/translation.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ end
using Base.Threads: @threads

data = Vector{Float64}(undef, 10)
@threads for i in 1:10
@threads for i in eachindex(data)
data[i] = calc(i)
end
```
Expand Down

0 comments on commit 3eacfbb

Please sign in to comment.