diff options
Diffstat (limited to 'spec/outputs/codes_from_doc.lua')
-rw-r--r-- | spec/outputs/codes_from_doc.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index a37b459..27f8de5 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua | |||
@@ -486,17 +486,16 @@ end | |||
486 | do | 486 | do |
487 | a = 1 | 487 | a = 1 |
488 | print("declare all variables as globals") | 488 | print("declare all variables as globals") |
489 | local x | ||
490 | x = function() | 489 | x = function() |
491 | return 1 + y + z | 490 | return 1 + y + z |
492 | end | 491 | end |
493 | local y, z = 2, 3 | 492 | y, z = 2, 3 |
494 | end | 493 | end |
495 | do | 494 | do |
496 | X = 1 | 495 | X = 1 |
497 | print("only declare upper case variables as globals") | 496 | print("only declare upper case variables as globals") |
498 | local a = 1 | 497 | local a = 1 |
499 | local B = 2 | 498 | B = 2 |
500 | local Temp = "a local value" | 499 | local Temp = "a local value" |
501 | end | 500 | end |
502 | local thing = { | 501 | local thing = { |
@@ -2494,17 +2493,16 @@ end | |||
2494 | do | 2493 | do |
2495 | a = 1 | 2494 | a = 1 |
2496 | print("declare all variables as globals") | 2495 | print("declare all variables as globals") |
2497 | local x | ||
2498 | x = function() | 2496 | x = function() |
2499 | return 1 + y + z | 2497 | return 1 + y + z |
2500 | end | 2498 | end |
2501 | local y, z = 2, 3 | 2499 | y, z = 2, 3 |
2502 | end | 2500 | end |
2503 | do | 2501 | do |
2504 | X = 1 | 2502 | X = 1 |
2505 | print("only declare upper case variables as globals") | 2503 | print("only declare upper case variables as globals") |
2506 | local a = 1 | 2504 | local a = 1 |
2507 | local B = 2 | 2505 | B = 2 |
2508 | local Temp = "a local value" | 2506 | local Temp = "a local value" |
2509 | end | 2507 | end |
2510 | local thing = { | 2508 | local thing = { |