diff options
author | Adam <adam@adambard.com> | 2016-01-08 14:35:53 +0800 |
---|---|---|
committer | Adam <adam@adambard.com> | 2016-01-08 14:35:53 +0800 |
commit | ef28fa69775ba064dfed212e034b5caae7edb7b9 (patch) | |
tree | d3a30be274822754414b438fe9b9c102edc09630 /d.html.markdown | |
parent | 8ad537a9ba9889234a63c5a38caeab3e225856e4 (diff) | |
parent | 04166190367a93236e7173901dff7ae9661736ba (diff) |
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'd.html.markdown')
-rw-r--r-- | d.html.markdown | 2 |
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); } } ``` |