diff options
author | Li Jin <dragon-fly@qq.com> | 2025-05-21 15:48:27 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2025-05-21 15:48:27 +0800 |
commit | 435dd01f4860b258c9e4dbe3902f5372e136355c (patch) | |
tree | 55e0019161424bbc8b597947a6bb394885762e86 | |
parent | d4b7efe3f48b40d108754d2e8359fee1cd9dded8 (diff) | |
download | yuescript-435dd01f4860b258c9e4dbe3902f5372e136355c.tar.gz yuescript-435dd01f4860b258c9e4dbe3902f5372e136355c.tar.bz2 yuescript-435dd01f4860b258c9e4dbe3902f5372e136355c.zip |
Updated doc code.
-rw-r--r-- | spec/outputs/codes_from_doc.lua | 2 | ||||
-rw-r--r-- | spec/outputs/codes_from_doc_zh.lua | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index 644b7c3..177c33d 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua | |||
@@ -689,6 +689,7 @@ local _ <close> = setmetatable({ }, { | |||
689 | local a, b, c, d | 689 | local a, b, c, d |
690 | local _obj_0 = tb | 690 | local _obj_0 = tb |
691 | a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] | 691 | a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] |
692 | Constant = 123 | ||
692 | local some_string = "Here is a string\n that has a line break in it." | 693 | local some_string = "Here is a string\n that has a line break in it." |
693 | print("I am " .. tostring(math.random() * 100) .. "% sure.") | 694 | print("I am " .. tostring(math.random() * 100) .. "% sure.") |
694 | local integer = 1000000 | 695 | local integer = 1000000 |
@@ -2864,6 +2865,7 @@ local _ <close> = setmetatable({ }, { | |||
2864 | local a, b, c, d | 2865 | local a, b, c, d |
2865 | local _obj_0 = tb | 2866 | local _obj_0 = tb |
2866 | a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] | 2867 | a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] |
2868 | Constant = 123 | ||
2867 | local some_string = "Here is a string\n that has a line break in it." | 2869 | local some_string = "Here is a string\n that has a line break in it." |
2868 | print("I am " .. tostring(math.random() * 100) .. "% sure.") | 2870 | print("I am " .. tostring(math.random() * 100) .. "% sure.") |
2869 | local integer = 1000000 | 2871 | local integer = 1000000 |
diff --git a/spec/outputs/codes_from_doc_zh.lua b/spec/outputs/codes_from_doc_zh.lua index 2457c52..6349010 100644 --- a/spec/outputs/codes_from_doc_zh.lua +++ b/spec/outputs/codes_from_doc_zh.lua | |||
@@ -689,6 +689,7 @@ local _ <close> = setmetatable({ }, { | |||
689 | local a, b, c, d | 689 | local a, b, c, d |
690 | local _obj_0 = tb | 690 | local _obj_0 = tb |
691 | a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] | 691 | a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] |
692 | Constant = 123 | ||
692 | local some_string = "这是一个字符串\n 并包括一个换行。" | 693 | local some_string = "这是一个字符串\n 并包括一个换行。" |
693 | print("我有" .. tostring(math.random() * 100) .. "%的把握。") | 694 | print("我有" .. tostring(math.random() * 100) .. "%的把握。") |
694 | local integer = 1000000 | 695 | local integer = 1000000 |
@@ -2858,6 +2859,7 @@ local _ <close> = setmetatable({ }, { | |||
2858 | local a, b, c, d | 2859 | local a, b, c, d |
2859 | local _obj_0 = tb | 2860 | local _obj_0 = tb |
2860 | a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] | 2861 | a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] |
2862 | Constant = 123 | ||
2861 | local some_string = "这是一个字符串\n 并包括一个换行。" | 2863 | local some_string = "这是一个字符串\n 并包括一个换行。" |
2862 | print("我有" .. tostring(math.random() * 100) .. "%的把握。") | 2864 | print("我有" .. tostring(math.random() * 100) .. "%的把握。") |
2863 | local integer = 1000000 | 2865 | local integer = 1000000 |