From 56287718ddbb85b66a011e014f01a844580caf16 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 29 Jan 2025 17:19:16 +0800 Subject: Fixed docs. [skip CI] --- doc/docs/doc/README.md | 2 +- doc/docs/zh/doc/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md index 7968a09..56d3635 100755 --- a/doc/docs/doc/README.md +++ b/doc/docs/doc/README.md @@ -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) diff --git a/doc/docs/zh/doc/README.md b/doc/docs/zh/doc/README.md index 882417e..0e5b532 100755 --- a/doc/docs/zh/doc/README.md +++ b/doc/docs/zh/doc/README.md @@ -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) -- cgit v1.2.3-55-g6feb