From fc545b0e7bfd7441ea03f30c52fa373124186f4b Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 10 Oct 2021 00:05:36 +0800 Subject: fix table.unpack --- xmake/core/base/table.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/core/base/table.lua') 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) -- cgit v1.3.1