Skip to content

Commit ff88a93

Browse files
authored
fix-rules-typo (erigontech#8681)
1 parent a068208 commit ff88a93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

erigon-lib/rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func mismatchingUnlock(m dsl.Matcher) {
7676
m.Match(`$mu.Lock(); defer $mu.$unlock()`).
7777
Where(m["unlock"].Text == "RUnlock").
7878
At(m["unlock"]).
79-
Report(`maybe $2mu.Unlock() was intended?
79+
Report(`maybe $mu.Unlock() was intended?
8080
Rules are in ./rules.go file.`)
8181

8282
m.Match(`$mu.RLock(); defer $mu.$unlock()`).

rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func mismatchingUnlock(m dsl.Matcher) {
7575
m.Match(`$mu.Lock(); defer $mu.$unlock()`).
7676
Where(m["unlock"].Text == "RUnlock").
7777
At(m["unlock"]).
78-
Report(`maybe $2mu.Unlock() was intended?
78+
Report(`maybe $mu.Unlock() was intended?
7979
Rules are in ./rules.go file.`)
8080

8181
m.Match(`$mu.RLock(); defer $mu.$unlock()`).

0 commit comments

Comments
 (0)