diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-21 19:52:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-21 19:52:16 +0800 |
commit | 07219cbb20a46fbad86c4145710ebd976b54e138 (patch) | |
tree | d695f137f66c99b903f01edd3e46533242c3015c | |
parent | 364371362ffce9a90d09bd6f60c3a6a20d006fc7 (diff) | |
download | lua-language-server-07219cbb20a46fbad86c4145710ebd976b54e138.zip |
#871 fix return type of `math.floor`
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | meta/template/math.lua | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 5a025bd6..00c2c275 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## 2.5.6 * `CHG` diagnostic: now syntax errors in `LuaDoc` are shown as `Warning` +* `FIX` return type of `math.floor` ## 2.5.5 `2021-12-16` diff --git a/meta/template/math.lua b/meta/template/math.lua index f987eb0b..d9837424 100644 --- a/meta/template/math.lua +++ b/meta/template/math.lua @@ -87,7 +87,7 @@ function math.exp(x) end ---#DES 'math.floor' ---@param x number ----@return number +---@return integer ---@nodiscard function math.floor(x) end |