diff options
| author | Per Lilja <perlilja@gmail.com> | 2015-10-21 13:28:36 +0200 | 
|---|---|---|
| committer | Per Lilja <perlilja@gmail.com> | 2015-10-21 13:28:36 +0200 | 
| commit | 3f8b067a0cace44bb43bdd08561b0efc747fb26c (patch) | |
| tree | 1e17c3f1968f7b2f97ea9f84ca0098224ff60786 /chapel.html.markdown | |
| parent | d1a822f96c88855b2cbb649a4ea7b452e4104164 (diff) | |
| parent | ef6973b13f50063462d28a96ac57e93aed40844c (diff) | |
Merge pull request #1 from adambard/master
Update fork
Diffstat (limited to 'chapel.html.markdown')
| -rw-r--r-- | chapel.html.markdown | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/chapel.html.markdown b/chapel.html.markdown index 02a96b04..7252a3e4 100644 --- a/chapel.html.markdown +++ b/chapel.html.markdown @@ -307,7 +307,7 @@ var stringSet: domain(string); // empty set of strings  stringSet += "a";  stringSet += "b";  stringSet += "c"; -stringSet += "a"; // Redundant add "a"   +stringSet += "a"; // Redundant add "a"  stringSet -= "c"; // Remove "c"  writeln( stringSet ); @@ -524,12 +524,12 @@ genericProc( 1.0+2.0i, 3.0+4.0i );  // The param modifier on the arg is used to enforce this constraint.  proc whereProc( param N : int ): void   where ( N > 0 ) { -  writeln( "N is greater than 0" );   +  writeln( "N is greater than 0" );  }  proc whereProc( param N : int ): void   where ( N < 0 ) { -  writeln( "N is less than 0" );   +  writeln( "N is less than 0" );  }  whereProc( 10 ); @@ -633,7 +633,7 @@ writeln( toThisArray );  // var iterArray : [1..10] int = [ i in 1..10 ] if ( i % 2 == 1 ) then j;  // exhibits a runtime error.  // Even though the domain of the array and the loop-expression are -// the same size, the body of the expression can be though of as an iterator. +// the same size, the body of the expression can be thought of as an iterator.  // Because iterators can yield nothing, that iterator yields a different number  // of things than the domain of the array or loop, which is not allowed. | 
