fix parallelism example typo

This commit is contained in:
Borislav Kosharov 2016-01-02 18:43:19 +02:00
parent 493d416bee
commit 1f0b1bfb7a

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