mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-13 18:24:39 +02:00
Update lua.html.markdown
This commit is contained in:
@@ -17,10 +17,7 @@ filename: learnlua.lua
|
|||||||
-- 1. Variables and flow control.
|
-- 1. Variables and flow control.
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
|
|
||||||
num = 42 -- All numbers are doubles.
|
num = 42 -- Numbers can be integer or floating point.
|
||||||
-- Don't freak out, 64-bit doubles have 52 bits for
|
|
||||||
-- storing exact int values; machine precision is
|
|
||||||
-- not a problem for ints that need < 52 bits.
|
|
||||||
|
|
||||||
s = 'walternate' -- Immutable strings like Python.
|
s = 'walternate' -- Immutable strings like Python.
|
||||||
t = "double-quotes are also fine"
|
t = "double-quotes are also fine"
|
||||||
|
Reference in New Issue
Block a user