Skip to content

Commit

Permalink
Fixed docs. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Jan 29, 2025
1 parent c26aae8 commit 5628771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/docs/doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Require YueScript module and rewite message by hand.
local yue = require("yue")
yue.insert_loader()
local success, result = xpcall(function()
require("yuescript_module_name")
return require("yuescript_module_name")
end, function(err)
return yue.traceback(err)
end)
Expand Down
2 changes: 1 addition & 1 deletion doc/docs/zh/doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ require("yue")("你的脚本入口文件")
local yue = require("yue")
yue.insert_loaders()
local success, result = xpcall(function()
require("yuescript_module_name")
return require("yuescript_module_name")
end, function(err)
return yue.traceback(err)
end)
Expand Down

0 comments on commit 5628771

Please sign in to comment.