aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-01-29 14:19:15 +0800
committerLi Jin <dragon-fly@qq.com>2025-01-29 14:19:15 +0800
commitc26aae8ec7074df49c56f8459af0d5563b46d04d (patch)
tree57a4ef9896d78051bac0efea2ff76b955bd50997 /doc
parent8a771320fa37d6069a1ef4a9ac30ac6243149e26 (diff)
downloadyuescript-c26aae8ec7074df49c56f8459af0d5563b46d04d.tar.gz
yuescript-c26aae8ec7074df49c56f8459af0d5563b46d04d.tar.bz2
yuescript-c26aae8ec7074df49c56f8459af0d5563b46d04d.zip
Updated spec and docs.
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/docs/doc/README.md3
-rwxr-xr-xdoc/docs/zh/doc/README.md3
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md
index 49be707..7968a09 100755
--- a/doc/docs/doc/README.md
+++ b/doc/docs/doc/README.md
@@ -137,8 +137,9 @@ require("yue")("your_yuescript_entry")
137Require YueScript module and rewite message by hand. 137Require YueScript module and rewite message by hand.
138```lua 138```lua
139local yue = require("yue") 139local yue = require("yue")
140yue.insert_loader()
140local success, result = xpcall(function() 141local success, result = xpcall(function()
141 yue.require("yuescript_module_name") 142 require("yuescript_module_name")
142end, function(err) 143end, function(err)
143 return yue.traceback(err) 144 return yue.traceback(err)
144end) 145end)
diff --git a/doc/docs/zh/doc/README.md b/doc/docs/zh/doc/README.md
index be31ec1..882417e 100755
--- a/doc/docs/zh/doc/README.md
+++ b/doc/docs/zh/doc/README.md
@@ -137,8 +137,9 @@ require("yue")("你的脚本入口文件")
137手动引入月之脚本模块并重写错误消息来帮助调试。 137手动引入月之脚本模块并重写错误消息来帮助调试。
138```lua 138```lua
139local yue = require("yue") 139local yue = require("yue")
140yue.insert_loaders()
140local success, result = xpcall(function() 141local success, result = xpcall(function()
141 yue.require("yuescript_module_name") 142 require("yuescript_module_name")
142end, function(err) 143end, function(err)
143 return yue.traceback(err) 144 return yue.traceback(err)
144end) 145end)