diff options
author | actboy168 <actboy168@gmail.com> | 2022-04-27 11:45:20 +0800 |
---|---|---|
committer | actboy168 <actboy168@gmail.com> | 2022-04-27 11:45:20 +0800 |
commit | 6b3354fbb384ab174283bea3659411e7ad20d50d (patch) | |
tree | 54053aa1b234b0c2a82bc229d864f20d2832ba72 /meta/template | |
parent | 9ae440549ac70f39a489a8c6ce538b4c8c295e66 (diff) | |
download | lua-language-server-6b3354fbb384ab174283bea3659411e7ad20d50d.zip |
update std doc
Diffstat (limited to 'meta/template')
-rw-r--r-- | meta/template/basic.lua | 20 | ||||
-rw-r--r-- | meta/template/os.lua | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 3d59858d..b4913cc2 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -83,8 +83,8 @@ function ipairs(t) end ---#DES 'load<5.1' ---@param func function ---@param chunkname? string ----@return function ----@return string error_message +---@return function? +---@return string? error_message ---@nodiscard function load(func, chunkname) end ---#else @@ -93,8 +93,8 @@ function load(func, chunkname) end ---@param chunkname? string ---@param mode? loadmode ---@param env? table ----@return function ----@return string error_message +---@return function? +---@return string? error_message ---@nodiscard function load(chunk, chunkname, mode, env) end ---#end @@ -102,8 +102,8 @@ function load(chunk, chunkname, mode, env) end ---#if VERSION <= 5.1 and not JIT then ---#DES 'loadfile' ---@param filename? string ----@return function ----@return string error_message +---@return function? +---@return string? error_message ---@nodiscard function loadfile(filename) end ---#else @@ -111,8 +111,8 @@ function loadfile(filename) end ---@param filename? string ---@param mode? loadmode ---@param env? table ----@return function ----@return string error_message +---@return function? +---@return string? error_message ---@nodiscard function loadfile(filename, mode, env) end ---#end @@ -121,8 +121,8 @@ function loadfile(filename, mode, env) end ---#DES 'loadstring' ---@param text string ---@param chunkname? string ----@return function ----@return string error_message +---@return function? +---@return string? error_message ---@nodiscard function loadstring(text, chunkname) end diff --git a/meta/template/os.lua b/meta/template/os.lua index 711a17b6..c6af18cd 100644 --- a/meta/template/os.lua +++ b/meta/template/os.lua @@ -69,7 +69,7 @@ function os.exit(code, close) end ---#DES 'os.getenv' ---@param varname string ----@return string +---@return string? ---@nodiscard function os.getenv(varname) end |