diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 17:06:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 17:06:34 +0800 |
commit | ab27e9a9d62b00a779712fbb7bddd9f2910707a2 (patch) | |
tree | dc82a7a1bc252d82748e413b5f8b4243d7bcd085 /meta/template/io.lua | |
parent | 8b060037c9fd5961f8de6b9da674d5a29a77334e (diff) | |
download | lua-language-server-ab27e9a9d62b00a779712fbb7bddd9f2910707a2.zip |
可选参数尽量写在变量名后面,与其他语言保持一致
Diffstat (limited to 'meta/template/io.lua')
-rw-r--r-- | meta/template/io.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/template/io.lua b/meta/template/io.lua index 4adb252a..75ebf101 100644 --- a/meta/template/io.lua +++ b/meta/template/io.lua @@ -20,7 +20,7 @@ io = {} ---| '"w+b"' ---| '"a+b"' ----@param file file*? +---@param file? file* ---@return boolean suc? ---@return exitcode exitcode? ---@return integer code? @@ -38,7 +38,7 @@ function io.input(file) end function io.lines(filename, ...) end ---@param filename string ----@param mode openmode +---@param mode openmode ---@return file*? ---@return string errmsg? function io.open(filename, mode) end @@ -51,8 +51,8 @@ function io.output(file) end ---| '"r"' ---| '"w"' ----@param prog string ----@param mode popenmode? +---@param prog string +---@param mode? popenmode ---@return file*? ---@return string errmsg? function io.popen(prog, mode) end |