summaryrefslogtreecommitdiff
path: root/meta/template/io.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-23 00:42:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-23 00:42:10 +0800
commitec1f746a71dfb981f093bf00322db75d559fd6b6 (patch)
tree71730d2de455bf7cd8a9481a554a56cddf47f341 /meta/template/io.lua
parent6e00db5b51646ad91c5ee5598897cad7f8d65915 (diff)
downloadlua-language-server-ec1f746a71dfb981f093bf00322db75d559fd6b6.zip
fix optional parameters
Diffstat (limited to 'meta/template/io.lua')
-rw-r--r--meta/template/io.lua4
1 files changed, 2 insertions, 2 deletions
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'