From 3eacfbb4caa41f85915418344d5f0729d1b403ff Mon Sep 17 00:00:00 2001 From: Carsten Bauer Date: Wed, 19 Jun 2024 13:42:40 +0200 Subject: [PATCH] minor --- docs/src/translation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/translation.md b/docs/src/translation.md index 15f281fa..dea7de8f 100644 --- a/docs/src/translation.md +++ b/docs/src/translation.md @@ -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 ```