diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 17:19:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 17:19:42 +0800 |
commit | 9fee07ae4d04b37bacf55fc4e2be9c80d1a6f58e (patch) | |
tree | dd9af6da434e210c4931742aad2088fbe48aba95 /meta/template/io.lua | |
parent | ab27e9a9d62b00a779712fbb7bddd9f2910707a2 (diff) | |
download | lua-language-server-9fee07ae4d04b37bacf55fc4e2be9c80d1a6f58e.zip |
doc.return 也把 ? 写在前面
Diffstat (limited to 'meta/template/io.lua')
-rw-r--r-- | meta/template/io.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/template/io.lua b/meta/template/io.lua index 75ebf101..3669dd16 100644 --- a/meta/template/io.lua +++ b/meta/template/io.lua @@ -21,9 +21,9 @@ io = {} ---| '"a+b"' ---@param file? file* ----@return boolean suc? ----@return exitcode exitcode? ----@return integer code? +---@return boolean? suc +---@return exitcode? exitcode +---@return integer? code function io.close(file) end function io.flush() end @@ -40,7 +40,7 @@ function io.lines(filename, ...) end ---@param filename string ---@param mode openmode ---@return file*? ----@return string errmsg? +---@return string? errmsg function io.open(filename, mode) end ---@overload fun():file* @@ -54,7 +54,7 @@ function io.output(file) end ---@param prog string ---@param mode? popenmode ---@return file*? ----@return string errmsg? +---@return string? errmsg function io.popen(prog, mode) end ---@vararg readmode @@ -74,7 +74,7 @@ function io.tmpfile() end function io.type(file) end ---@return file* ----@return string errmsg? +---@return string? errmsg function io.write(...) end return io |