diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 02:57:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 02:57:13 +0800 |
commit | 838ce36fdd7abdff0b4cab5e67c2500325178805 (patch) | |
tree | bffd74f604cbcf666ca5d41d1c9f5750e48e1db9 /meta | |
parent | 0ff98557a45c25d7a49520e57f49561a62300f35 (diff) | |
download | lua-language-server-838ce36fdd7abdff0b4cab5e67c2500325178805.zip |
update
Diffstat (limited to 'meta')
-rw-r--r-- | meta/template/math.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/meta/template/math.lua b/meta/template/math.lua index d9837424..c126aef7 100644 --- a/meta/template/math.lua +++ b/meta/template/math.lua @@ -137,16 +137,18 @@ function math.log(x, base) end function math.log10(x) end ---#DES 'math.max' ----@param x number ----@param ... number ----@return number +---@generic Number: number +---@param x Number +---@param ... Number +---@return Number ---@nodiscard function math.max(x, ...) end ---#DES 'math.min' ----@param x number ----@param ... number ----@return number +---@generic Number: number +---@param x Number +---@param ... Number +---@return Number ---@nodiscard function math.min(x, ...) end @@ -225,7 +227,7 @@ function math.tanh(x) end ---@version >5.3 ---#DES 'math.tointeger' ----@param x number +---@param x number|string ---@return integer? ---@nodiscard function math.tointeger(x) end |