]> Cypherpunks repositories - gostls13.git/commitdiff
sync: make clear that WaitGroup.Done decrements by one
authorAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 21 Jun 2017 15:17:22 +0000 (17:17 +0200)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 21 Jun 2017 15:49:18 +0000 (15:49 +0000)
Change-Id: Ief076151739147378f8ca35cd09aabb59c3c9a52
Reviewed-on: https://go-review.googlesource.com/46350
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/sync/waitgroup.go

index 4b23540ae770a04b15f26e3085284a46f2032cb8..f266f7c2b97f94e04ea5d788c8e963cd77a17076 100644 (file)
@@ -95,7 +95,7 @@ func (wg *WaitGroup) Add(delta int) {
        }
 }
 
-// Done decrements the WaitGroup counter.
+// Done decrements the WaitGroup counter by one.
 func (wg *WaitGroup) Done() {
        wg.Add(-1)
 }