summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2016-01-02 17:56:33 +0100
committerven <vendethiel@hotmail.fr>2016-01-02 17:56:33 +0100
commitb2113480a410db0d2a6da4371a4a3aaaeb4959f1 (patch)
treec7577f9c73d46d0e21064a09f5f90731a8b2c1e3
parent493d416bee9e81b576955660a269fc8e29a2582f (diff)
parent1f0b1bfb7a8d7abe3563015bad0110d6c319208f (diff)
Merge pull request #2086 from nikibobi/patch-1
fix parallelism example typo
-rw-r--r--d.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/d.html.markdown b/d.html.markdown
index 6f88cf84..edb3bff5 100644
--- a/d.html.markdown
+++ b/d.html.markdown
@@ -254,7 +254,7 @@ void main() {
// Use an index, access every array element by reference (because we're
// going to change each element) and just call parallel on the array!
foreach(i, ref elem; parallel(arr)) {
- ref = sqrt(i + 1.0);
+ elem = sqrt(i + 1.0);
}
}
```