]> Cypherpunks repositories - gostls13.git/commitdiff
sync: fix example code
authorAndrew Gerrand <adg@golang.org>
Wed, 23 Mar 2011 03:24:30 +0000 (14:24 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 23 Mar 2011 03:24:30 +0000 (14:24 +1100)
Fixes #1631.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4303046

src/pkg/sync/waitgroup.go

index 68e1d509f4811c8161901396fd880f2d098289e7..05478c630667eb705515e91305b331a850d49c45 100644 (file)
@@ -22,7 +22,7 @@ import "runtime"
 //       go func() {
 //           // Do something.
 //           wg.Done()
-//       }
+//       }()
 //   }
 //   wg.Wait()
 //