]> Cypherpunks repositories - gostls13.git/commitdiff
sync: a couple of documentation nits.
authorRob Pike <r@golang.org>
Sat, 29 Jan 2011 22:56:15 +0000 (14:56 -0800)
committerRob Pike <r@golang.org>
Sat, 29 Jan 2011 22:56:15 +0000 (14:56 -0800)
R=golang-dev, agl1
CC=golang-dev
https://golang.org/cl/4079051

src/pkg/sync/mutex.go
src/pkg/sync/once.go

index 9a2bb2bb4f548b6701dd361d68f01492e52308d0..c4d82af00c87876f21bc424f6bfb079b1818b7c4 100644 (file)
@@ -5,7 +5,7 @@
 // The sync package provides basic synchronization primitives
 // such as mutual exclusion locks.  Other than the Once type,
 // most are intended for use by low-level library routines.
-// Higher-level synchronization  is better done via channels
+// Higher-level synchronization is better done via channels
 // and communication.
 package sync
 
index 8c877cdec21c5da9f61bdad0c6bdedfb4232102b..b6f5f5a87264346c264025e1e0496716ac73f8a2 100644 (file)
@@ -13,7 +13,7 @@ type Once struct {
 // Do calls the function f if and only if the method is being called for the
 // first time with this receiver.  In other words, given
 //     var once Once
-// if Do(f) is called multiple times, only the first call will invoke f,
+// if once.Do(f) is called multiple times, only the first call will invoke f,
 // even if f has a different value in each invocation.  A new instance of
 // Once is required for each function to execute.
 //