From 435dd01f4860b258c9e4dbe3902f5372e136355c Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 21 May 2025 15:48:27 +0800 Subject: Updated doc code. --- spec/outputs/codes_from_doc.lua | 2 ++ spec/outputs/codes_from_doc_zh.lua | 2 ++ 2 files changed, 4 insertions(+) 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 _ = setmetatable({ }, { local a, b, c, d local _obj_0 = tb a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] +Constant = 123 local some_string = "Here is a string\n that has a line break in it." print("I am " .. tostring(math.random() * 100) .. "% sure.") local integer = 1000000 @@ -2864,6 +2865,7 @@ local _ = setmetatable({ }, { local a, b, c, d local _obj_0 = tb a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] +Constant = 123 local some_string = "Here is a string\n that has a line break in it." print("I am " .. tostring(math.random() * 100) .. "% sure.") 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 _ = setmetatable({ }, { local a, b, c, d local _obj_0 = tb a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] +Constant = 123 local some_string = "这是一个字符串\n 并包括一个换行。" print("我有" .. tostring(math.random() * 100) .. "%的把握。") local integer = 1000000 @@ -2858,6 +2859,7 @@ local _ = setmetatable({ }, { local a, b, c, d local _obj_0 = tb a, b, c, d = _obj_0.a, _obj_0.b, _obj_0[1], _obj_0[2] +Constant = 123 local some_string = "这是一个字符串\n 并包括一个换行。" print("我有" .. tostring(math.random() * 100) .. "%的把握。") local integer = 1000000 -- cgit v1.2.3-55-g6feb