diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-05-26 11:07:38 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-05-26 11:07:38 +0800 |
| commit | a91135ce512f907ed085d9aac147d8fcad356406 (patch) | |
| tree | e53408fe0a88ef71ea33d14bcb0b6eeb3a344810 /spec/outputs/codes_from_doc.lua | |
| parent | 4ba4c90e711c6204aa40e38347c5a5a076d9370e (diff) | |
| download | yuescript-a91135ce512f907ed085d9aac147d8fcad356406.tar.gz yuescript-a91135ce512f907ed085d9aac147d8fcad356406.tar.bz2 yuescript-a91135ce512f907ed085d9aac147d8fcad356406.zip | |
Added assignment expression for switch syntax.
Diffstat (limited to 'spec/outputs/codes_from_doc.lua')
| -rw-r--r-- | spec/outputs/codes_from_doc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index c7a2d50..d857dec 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua | |||
| @@ -1234,7 +1234,7 @@ if "Robert" == name then | |||
| 1234 | elseif "Dan" == name or "Daniel" == name then | 1234 | elseif "Dan" == name or "Daniel" == name then |
| 1235 | print("Your name, it's Dan") | 1235 | print("Your name, it's Dan") |
| 1236 | else | 1236 | else |
| 1237 | print("I don't know about your name") | 1237 | print("I don't know about you with name " .. tostring(name)) |
| 1238 | end | 1238 | end |
| 1239 | local b = 1 | 1239 | local b = 1 |
| 1240 | local next_number | 1240 | local next_number |
| @@ -3450,7 +3450,7 @@ if "Robert" == name then | |||
| 3450 | elseif "Dan" == name or "Daniel" == name then | 3450 | elseif "Dan" == name or "Daniel" == name then |
| 3451 | print("Your name, it's Dan") | 3451 | print("Your name, it's Dan") |
| 3452 | else | 3452 | else |
| 3453 | print("I don't know about your name") | 3453 | print("I don't know about you with name " .. tostring(name)) |
| 3454 | end | 3454 | end |
| 3455 | local b = 1 | 3455 | local b = 1 |
| 3456 | local next_number | 3456 | local next_number |
