diff options
Diffstat (limited to 'doc/docs/doc/README.md')
-rwxr-xr-x | doc/docs/doc/README.md | 11 |
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 | ||
1516 | You can also declare a global variable to be `const`. | ||
1517 | |||
1518 | ```moonscript | ||
1519 | global const Constant = 123 | ||
1520 | ``` | ||
1521 | <YueDisplay> | ||
1522 | <pre> | ||
1523 | global const Constant = 123 | ||
1524 | </pre> | ||
1525 | </YueDisplay> | ||
1526 | |||
1516 | ## Literals | 1527 | ## Literals |
1517 | 1528 | ||
1518 | All of the primitive literals in Lua can be used. This applies to numbers, strings, booleans, and **nil**. | 1529 | All of the primitive literals in Lua can be used. This applies to numbers, strings, booleans, and **nil**. |