From 09512074acae34fccc60f31a8c84d022e03ddf23 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, 22 Jun 2022 16:29:18 +0800 Subject: update --- meta/template/io.lua | 9 +++++---- meta/template/string.lua | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'meta') diff --git a/meta/template/io.lua b/meta/template/io.lua index b1fe5a9e..3a6e37ff 100644 --- a/meta/template/io.lua +++ b/meta/template/io.lua @@ -42,7 +42,7 @@ function io.input(file) end ---#DES 'io.lines' ---@param filename string? ---@param ... readmode ----@return fun():string|number +---@return fun():any, ... function io.lines(filename, ...) end ---#DES 'io.open' @@ -71,7 +71,7 @@ function io.popen(prog, mode) end ---#DES 'io.read' ---@param ... readmode ----@return string|number +---@return any ---@return ... ---@nodiscard function io.read(...) end @@ -129,12 +129,13 @@ function file:flush() end ---#DES 'file:lines' ---@param ... readmode ----@return fun():string|number +---@return fun():any, ... function file:lines(...) end ---#DES 'file:read' ---@param ... readmode ----@return string|number +---@return any +---@return ... ---@nodiscard function file:read(...) end diff --git a/meta/template/string.lua b/meta/template/string.lua index 8f0790d6..f74f7546 100644 --- a/meta/template/string.lua +++ b/meta/template/string.lua @@ -40,8 +40,8 @@ function string.dump(f, strip) end function string.find(s, pattern, init, plain) end ---#DES 'string.format' ----@param s string ----@param ... string +---@param s any +---@param ... any ---@return string ---@nodiscard function string.format(s, ...) end -- cgit v1.2.3