Skip to content

Commit 36f4f92

Browse files
authored
Merge pull request #1961 from C3pa/math.abs-annotation
Improve math.abs annotation
2 parents 0295ad8 + 09420b7 commit 36f4f92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

meta/template/math.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
math = {}
1616

1717
---#DES 'math.abs'
18-
---@param x number
19-
---@return number
18+
---@generic Number: number
19+
---@param x Number
20+
---@return Number
2021
---@nodiscard
2122
function math.abs(x) end
2223

0 commit comments

Comments
 (0)