Skip to content

Commit 08b0ae0

Browse files
committed
Merge pull request #11886 from tamird:patch-1
PiperOrigin-RevId: 780690006
2 parents a9f6102 + 30692d1 commit 08b0ae0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/checklocks/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ These can be ignored with the `+checklocksignore` annotation on fields.
255255
```go
256256
type foo struct {
257257
mu sync.Mutex
258-
// +checklocksignore: mu is not required, it just happens to be held always.
259-
bar int32
258+
bar int32 // +checklocksignore: mu is inferred as requisite.
260259
}
261260
```
262261

0 commit comments

Comments
 (0)