spelling fix: comp.. compar... КОМПАРАТОР
This commit is contained in:
parent
f59f32bd70
commit
77f5a2abdc
@ -168,7 +168,7 @@ local function new(data)
|
|||||||
--- @param other Effect
|
--- @param other Effect
|
||||||
--- @return boolean
|
--- @return boolean
|
||||||
function newEffect:__eq(other)
|
function newEffect:__eq(other)
|
||||||
return utils.deepComprasion(self, other)
|
return utils.deepComparison(self, other)
|
||||||
end
|
end
|
||||||
|
|
||||||
return newEffect
|
return newEffect
|
||||||
|
|||||||
@ -78,10 +78,10 @@ end
|
|||||||
--- @param t1 table
|
--- @param t1 table
|
||||||
--- @param t2 table
|
--- @param t2 table
|
||||||
--- @return boolean
|
--- @return boolean
|
||||||
function P.deepComprasion(t1, t2)
|
function P.deepComparison(t1, t2)
|
||||||
for k, v in pairs(t1) do
|
for k, v in pairs(t1) do
|
||||||
if type(v) == "table" and type(t2[k]) == "table" then
|
if type(v) == "table" and type(t2[k]) == "table" then
|
||||||
return P.deepComprasion(v, t2[k])
|
return P.deepComparison(v, t2[k])
|
||||||
end
|
end
|
||||||
if t2[k] ~= v then
|
if t2[k] ~= v then
|
||||||
return false
|
return false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user