From 55002befa1da20dfb21a1b06e5cafa5cf4c1afa0 Mon Sep 17 00:00:00 2001 From: sumneko Date: Thu, 18 Apr 2019 10:04:43 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0require?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/locale/zh-CN/libs/@lua/basic.lni | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'server/locale/zh-CN/libs') diff --git a/server/locale/zh-CN/libs/@lua/basic.lni b/server/locale/zh-CN/libs/@lua/basic.lni index 183983e4..3dcd7802 100644 --- a/server/locale/zh-CN/libs/@lua/basic.lni +++ b/server/locale/zh-CN/libs/@lua/basic.lni @@ -221,11 +221,14 @@ description = '以给定消息发出一个警告。当`tocont`为 true 时,应 [xpcall] description = '传入参数并设置一个消息处理器 `msgh`,以 *保护模式* 调用函数 `f` 。' -['xpcall Lua 5.1'] +["xpcall Lua 5.1"] description = '设置一个消息处理器 `err`,以 *保护模式* 调用函数 `f` 。' [require] -description = '加载一个模块。' +description = '加载一个模块,返回该模块的返回值(`nil`时为`true`)。' + +["require Lua 5.4"] +description = '加载一个模块,返回该模块的返回值(`nil`时为`true`)与搜索器返回的加载数据。默认搜索器的加载数据指示了加载位置,对于文件来说就是文件路径。' [unpack] description = [[ -- cgit v1.2.3