Skip to content

Commit

Permalink
fix-rules-typo (#8681)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlscjf151 authored Nov 9, 2023
1 parent a068208 commit ff88a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erigon-lib/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()`).
Expand Down
2 changes: 1 addition & 1 deletion rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()`).
Expand Down

0 comments on commit ff88a93

Please sign in to comment.