From 0d441029ddea4d4ef00f0ea49a023f744f55626b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Apr 2022 01:12:52 +0800 Subject: update doc of `getuservalue` and `setuservalue` --- meta/template/debug.lua | 6 +++--- 1 file 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 -- cgit v1.2.3