aboutsummaryrefslogtreecommitdiff
path: root/doc/docs/doc/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/docs/doc/README.md')
-rwxr-xr-xdoc/docs/doc/README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md
index dac96ee..1142fc3 100755
--- a/doc/docs/doc/README.md
+++ b/doc/docs/doc/README.md
@@ -1513,6 +1513,17 @@ const {:a, :b, c, d} = tb
1513</pre> 1513</pre>
1514</YueDisplay> 1514</YueDisplay>
1515 1515
1516You can also declare a global variable to be `const`.
1517
1518```moonscript
1519global const Constant = 123
1520```
1521<YueDisplay>
1522<pre>
1523global const Constant = 123
1524</pre>
1525</YueDisplay>
1526
1516## Literals 1527## Literals
1517 1528
1518All of the primitive literals in Lua can be used. This applies to numbers, strings, booleans, and **nil**. 1529All of the primitive literals in Lua can be used. This applies to numbers, strings, booleans, and **nil**.