Merge pull request #6996 from xyzst:fix-typo-checklocks-readme

PiperOrigin-RevId: 420110227
This commit is contained in:
gVisor bot
2022-01-06 11:52:11 -08:00
+1 -1
View File
@@ -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()
}