summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md1
-rw-r--r--meta/template/math.lua2
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