mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
Changes to comply with the documentation
This commit is contained in:
parent
266ddd400f
commit
5187ee76e9
1 changed files with 4 additions and 4 deletions
|
|
@ -153,13 +153,13 @@ function table.filter(t, func)
|
||||||
return t
|
return t
|
||||||
end
|
end
|
||||||
|
|
||||||
function table.set_default(t, indx, default)
|
function table.set_default(t, key, default)
|
||||||
if t[indx] == nil then
|
if t[key] == nil then
|
||||||
t[indx] = default
|
t[key] = default
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
return t[indx]
|
return t[key]
|
||||||
end
|
end
|
||||||
|
|
||||||
function table.flat(t)
|
function table.flat(t)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue