@@ -88,7 +88,7 @@ The generated Javascript looks like this:
88 var o = _1;
88 var o = _1;
89 return o.name ++ ", aged " ++ itoa(o.age);
89 return o.name ++ ", aged " ++ itoa(o.age);
91− throw "Failed pattern match";
91+ throw "Failed pattern match";
@@ -303,7 +303,7 @@ Object properties and array elements can also be mutated inside a block. For exa
303 o.foo = a
303 o.foo = a
306−## For loops
306+## For Loops
308For loops look like this:
308For loops look like this:
@@ -315,7 +315,7 @@ For loops look like this:
316The bounds `0` and `10` are inclusive and exclusive respectively.
316The bounds `0` and `10` are inclusive and exclusive respectively.
318−## For-each loops
318+## For-Each Loops
320For each loops loop over the elements in an array using the `Object.forEach` method. A polyfill may be required for some browsers:
320For each loops loop over the elements in an array using the `Object.forEach` method. A polyfill may be required for some browsers:
@@ -325,7 +325,7 @@ For each loops loop over the elements in an array using the `Object.forEach` met
325 n = n + i
325 n = n + i
328−## While loops
328+## While Loops
330The syntax of a while loop is similar to a foreach loop:
330The syntax of a while loop is similar to a foreach loop:
@@ -337,7 +337,7 @@ The syntax of a while loop is similar to a foreach loop:
337 count = count + 1
337 count = count + 1
338 return count
338 return count
340−## If-Then-Else statements
340+## If-Then-Else Statements
342Else branches are optional, and may contain further `if` statements, just as in Javascript:
342Else branches are optional, and may contain further `if` statements, just as in Javascript: