1
0
mirror of https://github.com/golang/go synced 2024-11-21 10:24:39 -07:00

sync: fix typo in documentation

R=rsc, adg
CC=golang-dev
https://golang.org/cl/2841041
This commit is contained in:
Robert Griesemer 2010-11-02 16:01:07 -07:00
parent 95b40f6ca1
commit 417e22b584

View File

@ -21,7 +21,7 @@ type RWMutex struct {
// RLock locks rw for reading.
// If the lock is already locked for writing or there is a writer already waiting
// to r the lock, RLock blocks until the writer has released the lock.
// to release the lock, RLock blocks until the writer has released the lock.
func (rw *RWMutex) RLock() {
// Use rw.r.Lock() to block granting the RLock if a goroutine
// is waiting for its Lock. This is the prevent starvation of W in