From ec1f746a71dfb981f093bf00322db75d559fd6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 23 Apr 2022 00:42:10 +0800 Subject: fix optional parameters --- meta/template/io.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/template/io.lua') diff --git a/meta/template/io.lua b/meta/template/io.lua index b2846878..b1fe5a9e 100644 --- a/meta/template/io.lua +++ b/meta/template/io.lua @@ -47,7 +47,7 @@ function io.lines(filename, ...) end ---#DES 'io.open' ---@param filename string ----@param mode openmode +---@param mode? openmode ---@return file*? ---@return string? errmsg ---@nodiscard @@ -157,7 +157,7 @@ function file:seek(whence, offset) end ---#DES 'file:setvbuf' ---@param mode vbuf ----@param size integer +---@param size? integer function file:setvbuf(mode, size) end ---#DES 'file:write' -- cgit v1.2.3