From 19e1709f0d53975fa0e752cb64c0c47e3c48bedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 30 Mar 2022 02:53:15 +0800 Subject: update --- meta/template/basic.lua | 4 +++- meta/template/table.lua | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'meta/template') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 980b3dc1..31b10bd1 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -274,8 +274,10 @@ function xpcall(f, msgh, arg1, ...) end ---@version 5.1 ---#DES 'unpack' ----@param list table +---@generic T +---@param list T[] ---@param i? integer ---@param j? integer +---@return T ---@nodiscard function unpack(list, i, j) end diff --git a/meta/template/table.lua b/meta/template/table.lua index c55c3160..3ec92ce8 100644 --- a/meta/template/table.lua +++ b/meta/template/table.lua @@ -56,9 +56,11 @@ function table.sort(list, comp) end ---@version >5.2, JIT ---#DES 'table.unpack' ----@param list table +---@generic T +---@param list T[] ---@param i? integer ---@param j? integer +---@return T ---@nodiscard function table.unpack(list, i, j) end -- cgit v1.2.3