diff --git a/changelog.md b/changelog.md index 42d0d59c5..ce4d7d7f3 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## Unreleased +* `FIX` Correct `math.type` meta return annotation to use `nil` instead of the string literal `'nil'` ## 3.18.2 * `CHG` `duplicate-set-field` diagnostic now supports linked suppression: when any occurrence of a duplicate field is suppressed with `---@diagnostic disable` or `---@diagnostic disable-next-line`, all warnings for that field name will be suppressed diff --git a/meta/template/math.lua b/meta/template/math.lua index f75c9b1a0..c20ab8c93 100644 --- a/meta/template/math.lua +++ b/meta/template/math.lua @@ -240,7 +240,7 @@ function math.tointeger(x) end ---@return ---| '"integer"' ---| '"float"' ----| 'nil' +---| nil ---@nodiscard function math.type(x) end