From 3c265f1bd4409c5713e88127e8fdca23870ea3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 8 Nov 2021 20:20:35 +0800 Subject: change to `@param ...` --- meta/template/io.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'meta/template/io.lua') diff --git a/meta/template/io.lua b/meta/template/io.lua index 1af572b6..b2846878 100644 --- a/meta/template/io.lua +++ b/meta/template/io.lua @@ -41,7 +41,7 @@ function io.input(file) end ---#DES 'io.lines' ---@param filename string? ----@vararg readmode +---@param ... readmode ---@return fun():string|number function io.lines(filename, ...) end @@ -70,7 +70,7 @@ function io.output(file) end function io.popen(prog, mode) end ---#DES 'io.read' ----@vararg readmode +---@param ... readmode ---@return string|number ---@return ... ---@nodiscard @@ -128,12 +128,12 @@ function file:close() end function file:flush() end ---#DES 'file:lines' ----@vararg readmode +---@param ... readmode ---@return fun():string|number function file:lines(...) end ---#DES 'file:read' ----@vararg readmode +---@param ... readmode ---@return string|number ---@nodiscard function file:read(...) end @@ -161,7 +161,7 @@ function file:seek(whence, offset) end function file:setvbuf(mode, size) end ---#DES 'file:write' ----@vararg string|number +---@param ... string|number ---@return file*? ---@return string? errmsg function file:write(...) end -- cgit v1.2.3