From 77f5a2abdcfc69b4aa9adaac4f2ca82cbb95bf60 Mon Sep 17 00:00:00 2001 From: neckrat Date: Thu, 23 Apr 2026 21:58:48 +0300 Subject: [PATCH] =?UTF-8?q?spelling=20fix:=20comp..=20compar...=20=D0=9A?= =?UTF-8?q?=D0=9E=D0=9C=D0=9F=D0=90=D0=A0=D0=90=D0=A2=D0=9E=D0=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/spell/effect.lua | 2 +- lib/utils/utils.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/spell/effect.lua b/lib/spell/effect.lua index c1c1e62..87e78ae 100644 --- a/lib/spell/effect.lua +++ b/lib/spell/effect.lua @@ -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 diff --git a/lib/utils/utils.lua b/lib/utils/utils.lua index f152dde..053f2eb 100644 --- a/lib/utils/utils.lua +++ b/lib/utils/utils.lua @@ -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