mirror of
https://github.com/golang/go
synced 2024-11-25 07:27:57 -07:00
sync: tidy a couple of comments.
no semantic change. R=rsc CC=golang-dev https://golang.org/cl/4128048
This commit is contained in:
parent
03a93158d2
commit
7c189a8417
@ -64,12 +64,10 @@ func (rw *RWMutex) Lock() {
|
|||||||
rw.r.Unlock()
|
rw.r.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unlock unlocks rw for writing.
|
// Unlock unlocks rw for writing. It is a run-time error if rw is
|
||||||
// It is a run-time error if rw is not locked for writing
|
// not locked for writing on entry to Unlock.
|
||||||
// on entry to Unlock.
|
|
||||||
//
|
//
|
||||||
// Like for Mutexes,
|
// As with Mutexes, a locked RWMutex is not associated with a particular
|
||||||
// a locked RWMutex is not associated with a particular goroutine.
|
// goroutine. One goroutine may RLock (Lock) an RWMutex and then
|
||||||
// It is allowed for one goroutine to RLock (Lock) an RWMutex and then
|
|
||||||
// arrange for another goroutine to RUnlock (Unlock) it.
|
// arrange for another goroutine to RUnlock (Unlock) it.
|
||||||
func (rw *RWMutex) Unlock() { rw.w.Unlock() }
|
func (rw *RWMutex) Unlock() { rw.w.Unlock() }
|
||||||
|
Loading…
Reference in New Issue
Block a user