ref: 3805b9556a6ed96cac073dbda26519f3390661ee
parent: de19a8fec7353f9e81a3c4660dd314d5cd15fd02
author: scharlatan <a.regenfuss@gmx.de>
date: Mon Feb 8 11:08:15 EST 2016
Fix typos in the language specification.
--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -205,7 +205,7 @@
eg: true, false
- Funciton literals describe a function. They begin with a '{',
+ Function literals describe a function. They begin with a '{',
followed by a newline-terminated argument list, followed by a
body and closing '}'. They will be described in more detail
later in this manual.
@@ -753,7 +753,7 @@
const main = {
var x = 123
var y = 456
- std.put("The max of %i, %i is %i\n", x, y, max(x, y))
+ std.put("The max of %i, %i is %i\n", x, y, intmax(x, y))
}
TODO: DESCRIBE CONSTRUCTS.