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