diff options
author | Milo Gilad <milogaccnts@gmail.com> | 2017-08-25 10:18:31 -0400 |
---|---|---|
committer | Milo Gilad <milogaccnts@gmail.com> | 2017-08-25 10:18:31 -0400 |
commit | a6c3a64a4c897a1f7e7acfbfe6318866317770ad (patch) | |
tree | 28b0d35aaf2cdc3e968e182f1de4d5c5e596a970 /chapel.html.markdown | |
parent | 1abae4b25de43e05df3ba225986997bc72eb3f8a (diff) | |
parent | bce21489d8d7e3a3f3d4ede2154dba082647296e (diff) |
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'chapel.html.markdown')
-rw-r--r-- | chapel.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chapel.html.markdown b/chapel.html.markdown index 68ce49cd..96ddc69d 100644 --- a/chapel.html.markdown +++ b/chapel.html.markdown @@ -242,7 +242,7 @@ do { } while (j <= 10000); writeln(jSum); -// for loops are much like those in python in that they iterate over a +// for loops are much like those in Python in that they iterate over a // range. Ranges (like the 1..10 expression below) are a first-class object // in Chapel, and as such can be stored in variables. for i in 1..10 do write(i, ", "); @@ -1064,14 +1064,14 @@ proc main() { } } -// Heres an example using atomics and a sync variable to create a +// Here's an example using atomics and a sync variable to create a // count-down mutex (also known as a multiplexer). var count: atomic int; // our counter var lock$: sync bool; // the mutex lock count.write(2); // Only let two tasks in at a time. lock$.writeXF(true); // Set lock$ to full (unlocked) - // Note: The value doesnt actually matter, just the state + // Note: The value doesn't actually matter, just the state // (full:unlocked / empty:locked) // Also, writeXF() fills (F) the sync var regardless of its state (X) |