summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-26 01:12:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-26 01:12:52 +0800
commit0d441029ddea4d4ef00f0ea49a023f744f55626b (patch)
tree44888e42073983f00187917d07e140107851ce9d /meta
parent2c26700b45f4d0080b9f983869d1c11f9ad5407e (diff)
downloadlua-language-server-0d441029ddea4d4ef00f0ea49a023f744f55626b.zip
update doc of `getuservalue` and `setuservalue`
Diffstat (limited to 'meta')
-rw-r--r--meta/template/debug.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/template/debug.lua b/meta/template/debug.lua
index 6e74e1f6..7db63e49 100644
--- a/meta/template/debug.lua
+++ b/meta/template/debug.lua
@@ -112,8 +112,8 @@ function debug.getupvalue(f, up) end
---#if VERSION >= 5.4 then
---#DES 'debug.getuservalue>5.4'
----@param u userdata
----@param n integer
+---@param u userdata
+---@param n? integer
---@return any
---@return boolean
---@nodiscard
@@ -180,7 +180,7 @@ function debug.setupvalue(f, up, value) end
---#DES 'debug.setuservalue>5.4'
---@param udata userdata
---@param value any
----@param n integer
+---@param n? integer
---@return userdata udata
function debug.setuservalue(udata, value, n) end
---#elseif VERSION >= 5.2 or JIT then