Skip to content

Commit ee2d0ec

Browse files
committed
fix(math): correct math.type return annotation
1 parent b5e57c3 commit ee2d0ec

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5+
* `FIX` Correct `math.type` meta return annotation to use `nil` instead of the string literal `'nil'`
56

67
## 3.18.2
78
* `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

meta/template/math.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function math.tointeger(x) end
240240
---@return
241241
---| '"integer"'
242242
---| '"float"'
243-
---| 'nil'
243+
---| nil
244244
---@nodiscard
245245
function math.type(x) end
246246

0 commit comments

Comments
 (0)