From ff88a9393e6f320ee3f9c3b9ea38f78eec732e12 Mon Sep 17 00:00:00 2001 From: pwd123 <46750216+dlscjf151@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:40:24 +0900 Subject: [PATCH] fix-rules-typo (#8681) --- erigon-lib/rules.go | 2 +- rules.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erigon-lib/rules.go b/erigon-lib/rules.go index dde688bbc..7af2a3957 100644 --- a/erigon-lib/rules.go +++ b/erigon-lib/rules.go @@ -76,7 +76,7 @@ func mismatchingUnlock(m dsl.Matcher) { m.Match(`$mu.Lock(); defer $mu.$unlock()`). Where(m["unlock"].Text == "RUnlock"). At(m["unlock"]). - Report(`maybe $2mu.Unlock() was intended? + Report(`maybe $mu.Unlock() was intended? Rules are in ./rules.go file.`) m.Match(`$mu.RLock(); defer $mu.$unlock()`). diff --git a/rules.go b/rules.go index 889b03bf6..99d338340 100644 --- a/rules.go +++ b/rules.go @@ -75,7 +75,7 @@ func mismatchingUnlock(m dsl.Matcher) { m.Match(`$mu.Lock(); defer $mu.$unlock()`). Where(m["unlock"].Text == "RUnlock"). At(m["unlock"]). - Report(`maybe $2mu.Unlock() was intended? + Report(`maybe $mu.Unlock() was intended? Rules are in ./rules.go file.`) m.Match(`$mu.RLock(); defer $mu.$unlock()`).