summaryrefslogtreecommitdiffhomepage
path: root/d.html.markdown
diff options
context:
space:
mode:
authorMark Green <mark@antelope.nildram.co.uk>2016-01-22 00:54:49 +0000
committerMark Green <mark@antelope.nildram.co.uk>2016-01-22 00:54:49 +0000
commit57053bc95d4166a42da8f6d1732dd21a217b073a (patch)
tree293a7775d4b46313a2ee955691141095653d4044 /d.html.markdown
parentdef04721be506f1c7ff5ddf407f2333999570a89 (diff)
parent9a5bb286686f5dd4fb743c1bd15ad70a3c6a4a3f (diff)
Merge remote-tracking branch 'refs/remotes/adambard/master'
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);
}
}
```