feat: add example for thrown away split initialization var

This commit is contained in:
Ibrahim Abdulhameed committed 2025-09-01 13:02:04 +01:00
1 parent c56683d28d
commit b85c043af2
1 file changed
+3
+3
View File
@@ -47,6 +47,9 @@ The famous "Hello World" program in Lua
local age = 18 -- local variable
boys, girls = 2, 3 -- global variables
-- Now x = 1, y = 2, z = 3, and 4 is thrown away.
x, y, z = 1, 2, 3, 4
-- Undefined variables return nil.
-- This is not an error:
foo = anUnknownVariable -- Now foo = nil.