summaryrefslogtreecommitdiff
path: root/xmake/core/base/table.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-10 00:05:36 +0800
committerruki <[email protected]>2021-10-10 00:05:36 +0800
commitfc545b0e7bfd7441ea03f30c52fa373124186f4b (patch)
tree1a7233a4bbaebc86a3cdeee361fb904c7e51ff66 /xmake/core/base/table.lua
parent37efd34d9f539e1b98404ad1134aa83b9baee0e4 (diff)
fix table.unpack
Diffstat (limited to 'xmake/core/base/table.lua')
-rw-r--r--xmake/core/base/table.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index 72987c1b6..f571a4553 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -328,8 +328,8 @@ function table.pack(...)
end
-- table.unpack table values
--- polyfill of lua 5.2, @see https://www.lua.org/manual/5.2/manual.html#pdf-table.unpack
-table.unpack = table.unpack or table.unpack
+-- polyfill of lua 5.2, @see https://www.lua.org/manual/5.2/manual.html#pdf-unpack
+table.unpack = table.unpack or unpack
-- get keys of a table
function table.keys(tab)