summaryrefslogtreecommitdiffhomepage
path: root/d.html.markdown
diff options
context:
space:
mode:
authorBorislav Kosharov <bosakmaw@gmail.com>2016-01-02 18:43:19 +0200
committerBorislav Kosharov <bosakmaw@gmail.com>2016-01-02 18:43:19 +0200
commit1f0b1bfb7a8d7abe3563015bad0110d6c319208f (patch)
treec7577f9c73d46d0e21064a09f5f90731a8b2c1e3 /d.html.markdown
parent493d416bee9e81b576955660a269fc8e29a2582f (diff)
fix parallelism example typo
Diffstat (limited to 'd.html.markdown')
-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);
}
}
```