diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-03-02 14:23:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 14:23:26 +0800 |
commit | 36f4f9204d979ff66d1b7afad6ea6cc6b57981cc (patch) | |
tree | 896d382da523293cdb427c218304e1465ea0fb5a | |
parent | 0295ad82ab5dea6867273426562dee4a41d0222e (diff) | |
parent | 09420b72cd1548f09886d940a2c9c4eba79bdb42 (diff) | |
download | lua-language-server-36f4f9204d979ff66d1b7afad6ea6cc6b57981cc.zip |
Merge pull request #1961 from C3pa/math.abs-annotation
Improve math.abs annotation
-rw-r--r-- | meta/template/math.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/template/math.lua b/meta/template/math.lua index 07917a2b..37e1d5c7 100644 --- a/meta/template/math.lua +++ b/meta/template/math.lua @@ -15,8 +15,9 @@ math = {} ---#DES 'math.abs' ----@param x number ----@return number +---@generic Number: number +---@param x Number +---@return Number ---@nodiscard function math.abs(x) end |