aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-05-21 15:48:27 +0800
committerLi Jin <dragon-fly@qq.com>2025-05-21 15:48:27 +0800
commit435dd01f4860b258c9e4dbe3902f5372e136355c (patch)
tree55e0019161424bbc8b597947a6bb394885762e86
parentd4b7efe3f48b40d108754d2e8359fee1cd9dded8 (diff)
downloadyuescript-435dd01f4860b258c9e4dbe3902f5372e136355c.tar.gz
yuescript-435dd01f4860b258c9e4dbe3902f5372e136355c.tar.bz2
yuescript-435dd01f4860b258c9e4dbe3902f5372e136355c.zip
Updated doc code.
-rw-r--r--spec/outputs/codes_from_doc.lua2
-rw-r--r--spec/outputs/codes_from_doc_zh.lua2
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({ }, {
689local a, b, c, d 689local a, b, c, d
690local _obj_0 = tb 690local _obj_0 = tb
691a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] 691a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2]
692Constant = 123
692local some_string = "Here is a string\n that has a line break in it." 693local some_string = "Here is a string\n that has a line break in it."
693print("I am " .. tostring(math.random() * 100) .. "% sure.") 694print("I am " .. tostring(math.random() * 100) .. "% sure.")
694local integer = 1000000 695local integer = 1000000
@@ -2864,6 +2865,7 @@ local _ <close> = setmetatable({ }, {
2864local a, b, c, d 2865local a, b, c, d
2865local _obj_0 = tb 2866local _obj_0 = tb
2866a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] 2867a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2]
2868Constant = 123
2867local some_string = "Here is a string\n that has a line break in it." 2869local some_string = "Here is a string\n that has a line break in it."
2868print("I am " .. tostring(math.random() * 100) .. "% sure.") 2870print("I am " .. tostring(math.random() * 100) .. "% sure.")
2869local integer = 1000000 2871local 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({ }, {
689local a, b, c, d 689local a, b, c, d
690local _obj_0 = tb 690local _obj_0 = tb
691a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] 691a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2]
692Constant = 123
692local some_string = "这是一个字符串\n 并包括一个换行。" 693local some_string = "这是一个字符串\n 并包括一个换行。"
693print("我有" .. tostring(math.random() * 100) .. "%的把握。") 694print("我有" .. tostring(math.random() * 100) .. "%的把握。")
694local integer = 1000000 695local integer = 1000000
@@ -2858,6 +2859,7 @@ local _ <close> = setmetatable({ }, {
2858local a, b, c, d 2859local a, b, c, d
2859local _obj_0 = tb 2860local _obj_0 = tb
2860a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] 2861a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2]
2862Constant = 123
2861local some_string = "这是一个字符串\n 并包括一个换行。" 2863local some_string = "这是一个字符串\n 并包括一个换行。"
2862print("我有" .. tostring(math.random() * 100) .. "%的把握。") 2864print("我有" .. tostring(math.random() * 100) .. "%的把握。")
2863local integer = 1000000 2865local integer = 1000000