From 6b3354fbb384ab174283bea3659411e7ad20d50d Mon Sep 17 00:00:00 2001 From: actboy168 Date: Wed, 27 Apr 2022 11:45:20 +0800 Subject: update std doc --- meta/template/basic.lua | 20 ++++++++++---------- meta/template/os.lua | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'meta') 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 -- cgit v1.2.3