Skip to content

Commit 0c5df12

Browse files
authored
Merge pull request #3097 from steveRoll-git/patch-1
Correct version for `math.type` and `math.ult`
2 parents 0c4ac73 + 9a1c331 commit 0c5df12

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* `FIX` reimplement section `luals.config` in file doc.json
1010
* `FIX` incorrect file names in file doc.json
1111
* `FIX` remove extra `./` path prefix in the check report when using `--check=.`
12+
* `FIX` correct lua version of `math.ult` and `math.type`
1213
* `FIX` incorrect links for `pattern` in `string` methods
1314
* `FIX` fix type annotations for bit module
1415
* `FIX` Another regression related to type narrow and generic param introduced since `v3.10.1` [#3087](https://github.com/LuaLS/lua-language-server/issues/3087)

meta/template/math.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ function math.tanh(x) end
234234
---@nodiscard
235235
function math.tointeger(x) end
236236

237+
---@version >5.3
237238
---#DES 'math.type'
238239
---@param x any
239240
---@return
@@ -243,6 +244,7 @@ function math.tointeger(x) end
243244
---@nodiscard
244245
function math.type(x) end
245246

247+
---@version >5.3
246248
---#DES 'math.ult'
247249
---@param m integer
248250
---@param n integer

0 commit comments

Comments
 (0)