aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
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)