mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-10 02:31:48 +00:00
Fixed typo in table.clear
This commit is contained in:
parent
74a04423bb
commit
4f3c277493
@ -144,7 +144,7 @@ if _table.clear == nil then
|
||||
--useful when multiple references are floating around
|
||||
--so you cannot just pop a new table out of nowhere
|
||||
function _table.clear(t)
|
||||
assert(type(to) == "table", "table.clear - argument 't' must be a table")
|
||||
assert(type(t) == "table", "table.clear - argument 't' must be a table")
|
||||
local k = next(t)
|
||||
while k ~= nil do
|
||||
t[k] = nil
|
||||
|
Loading…
Reference in New Issue
Block a user