From c16e3da5a1f1944d4d2f7cea49bf05c20b9311ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 19 Jun 2019 16:52:26 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=20warn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/libs/@lua/basic.lni | 4 +--- server/locale/en-US/libs/@lua/basic.lni | 7 +------ server/locale/zh-CN/libs/@lua/basic.lni | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/server/libs/@lua/basic.lni b/server/libs/@lua/basic.lni index 069bf0cd..beaa59db 100644 --- a/server/libs/@lua/basic.lni +++ b/server/libs/@lua/basic.lni @@ -494,9 +494,7 @@ version = 'Lua 5.4' name = 'message' type = 'string' `````````` -name = 'tocont' -type = 'boolean' -optional = 'after' +type = '...' [xpcall] special = xpcall diff --git a/server/locale/en-US/libs/@lua/basic.lni b/server/locale/en-US/libs/@lua/basic.lni index ccd1f05d..7dbf8d60 100644 --- a/server/locale/en-US/libs/@lua/basic.lni +++ b/server/locale/en-US/libs/@lua/basic.lni @@ -216,12 +216,7 @@ description = 'Running Lua version.' description = 'Running Lua version.' [warn] -description = [[ -Emits a warning with the given message. -A message in a call with `tocont` true should be -continued in another call to this function. -The default for `tocont` is false. -]] +description = 'Emits a warning with a message composed by the concatenation of all its arguments (which should be strings).' [xpcall] description = 'Calls function `f` with the given arguments in protected mode with a new message handler.' diff --git a/server/locale/zh-CN/libs/@lua/basic.lni b/server/locale/zh-CN/libs/@lua/basic.lni index 9415f3e8..d4b234b0 100644 --- a/server/locale/zh-CN/libs/@lua/basic.lni +++ b/server/locale/zh-CN/libs/@lua/basic.lni @@ -216,7 +216,7 @@ description = '当前解释器版本号。' description = '当前解释器版本号。' [warn] -description = '以给定消息发出一个警告。当`tocont`为 true 时,应当继续调用该函数来接续消息。`tocont`的默认值为 false 。' +description = '使用所有参数组成的字符串消息来发送警告。' [xpcall] description = '传入参数并设置一个消息处理器 `msgh`,以 *保护模式* 调用函数 `f` 。' -- cgit v1.2.3