Merge pull request #2086 from nikibobi/patch-1

fix parallelism example typo
This commit is contained in:
ven 2016-01-02 17:56:33 +01:00
commit b2113480a4

View File

@ -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);
}
}
```