mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
tools/checklocks: fix typo in readme
This commit is contained in:
@@ -88,7 +88,7 @@ greater than 100%, if the lock is held multiple times. For example:
|
||||
func foo(ts1 *testStruct, ts2 *testStruct) {
|
||||
ts1.Lock()
|
||||
ts2.Lock()
|
||||
ts1.gaurdedField = 1 // 200% locks held.
|
||||
ts1.guardedField = 1 // 200% locks held.
|
||||
ts1.Unlock()
|
||||
ts2.Unlock()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user