]> Cypherpunks repositories - gostls13.git/commitdiff
sync: tidy a couple of comments.
authorRob Pike <r@golang.org>
Wed, 2 Feb 2011 05:29:46 +0000 (21:29 -0800)
committerRob Pike <r@golang.org>
Wed, 2 Feb 2011 05:29:46 +0000 (21:29 -0800)
no semantic change.

R=rsc
CC=golang-dev
https://golang.org/cl/4128048

src/pkg/sync/rwmutex.go

index 06fd0b0ffb2473da67f18bc607369c12f52a020e..25696aca2fd6f4b0430f178d6d5241cb72feb7d6 100644 (file)
@@ -64,12 +64,10 @@ func (rw *RWMutex) Lock() {
        rw.r.Unlock()
 }
 
-// Unlock unlocks rw for writing.
-// It is a run-time error if rw is not locked for writing
-// on entry to Unlock.
+// Unlock unlocks rw for writing.  It is a run-time error if rw is
+// not locked for writing on entry to Unlock.
 //
-// Like for Mutexes,
-// a locked RWMutex is not associated with a particular goroutine.
-// It is allowed for one goroutine to RLock (Lock) an RWMutex and then
+// As with Mutexes, a locked RWMutex is not associated with a particular
+// goroutine.  One goroutine may RLock (Lock) an RWMutex and then
 // arrange for another goroutine to RUnlock (Unlock) it.
 func (rw *RWMutex) Unlock() { rw.w.Unlock() }