]> Cypherpunks repositories - gostls13.git/commitdiff
sync: fix typo in documentation
authorRobert Griesemer <gri@golang.org>
Tue, 2 Nov 2010 23:01:07 +0000 (16:01 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 2 Nov 2010 23:01:07 +0000 (16:01 -0700)
R=rsc, adg
CC=golang-dev
https://golang.org/cl/2841041

src/pkg/sync/rwmutex.go

index 0058cf252594179216303aa211526b8475cf366b..06fd0b0ffb2473da67f18bc607369c12f52a020e 100644 (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