summaryrefslogtreecommitdiff
path: root/meta/template/table.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/template/table.lua')
-rw-r--r--meta/template/table.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/template/table.lua b/meta/template/table.lua
index 21c8b619..a7fe68d2 100644
--- a/meta/template/table.lua
+++ b/meta/template/table.lua
@@ -50,8 +50,9 @@ function table.pack(...) end
function table.remove(list, pos) end
---#DES 'table.sort'
----@param list table
----@param comp fun(a: any, b: any):boolean
+---@generic T
+---@param list T[]
+---@param comp? fun(a: T, b: T):boolean
function table.sort(list, comp) end
---@version >5.2, JIT