diff options
author | Ian Bertolacci <ian.bertolacci@gmail.com> | 2015-08-02 15:53:19 -0700 |
---|---|---|
committer | Ian Bertolacci <ian.bertolacci@gmail.com> | 2015-08-02 15:53:19 -0700 |
commit | 84fee0a950f47d47ee21d6c676e845e294cb81be (patch) | |
tree | 77baeabc76ee5baea8134b5761cfe3b4907ebf70 /chapel.html.markdown | |
parent | 27cc82076214e68d9d93c90aafe5ae567fe78892 (diff) |
Small corrections.
Removed duplicate countDown.
Weird leftover words from parallelism statemet
General corrections so spelling capitalization
Diffstat (limited to 'chapel.html.markdown')
-rw-r--r-- | chapel.html.markdown | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/chapel.html.markdown b/chapel.html.markdown index 14bbe9f5..a4bcfb9f 100644 --- a/chapel.html.markdown +++ b/chapel.html.markdown @@ -683,7 +683,7 @@ module OurModule { // We can use modules inside of other modules. use Time; - // We'll use this a procedure in the parallelism section. + // We'll use this procedure in the parallelism section. proc countdown( seconds: int ){ for i in 1..seconds by -1 { writeln( i ); @@ -691,7 +691,7 @@ module OurModule { } } - // Submodule of Ourmodule + // Submodules of OurModule // It is possible to create arbitrarily deep module nests. module ChildModule { proc foo(){ @@ -726,7 +726,7 @@ foo(); // Less explicit call on ChildModule.foo() proc main(){ // Parallelism - // In other languages, parallelism is typically this is done with + // In other languages, parallelism is typically done with // complicated libraries and strange class structure hierarchies. // Chapel has it baked right into the language. @@ -821,13 +821,6 @@ proc main(){ // or iterate over indicies [ idx in myBigArray.domain ] myBigArray[idx] = -myBigArray[idx]; - proc countdown( seconds: int ){ - for i in 1..seconds by -1 { - writeln( i ); - sleep( 1 ); - } - } - // Atomic variables, common to many languages, are ones whose operations // occur uninterupted. Multiple threads can both modify atomic variables // and can know that their values are safe. |