git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Update README.md
c1ddde1Phil Freeman
README.md+5−5
@@ -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);
90 }
90 }
91− throw "Failed pattern match";
91+ throw "Failed pattern match";
92 })(p);
92 })(p);
93 };
93 };
94
94
@@ -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
304 return o
304 return o
305
305
306−## For loops
306+## For Loops
307
307
308For loops look like this:
308For loops look like this:
309
309
@@ -315,7 +315,7 @@ For loops look like this:
315
315
316The bounds `0` and `10` are inclusive and exclusive respectively.
316The bounds `0` and `10` are inclusive and exclusive respectively.
317
317
318−## For-each loops
318+## For-Each Loops
319
319
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:
321
321
@@ -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
326 return n
326 return n
327
327
328−## While loops
328+## While Loops
329
329
330The syntax of a while loop is similar to a foreach loop:
330The syntax of a while loop is similar to a foreach loop:
331
331
@@ -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
339
339
340−## If-Then-Else statements
340+## If-Then-Else Statements
341
341
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:
343
343