From: Alberto Donizetti Date: Wed, 21 Jun 2017 15:17:22 +0000 (+0200) Subject: sync: make clear that WaitGroup.Done decrements by one X-Git-Tag: go1.9beta2~37 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4b4bb53bf33d77bf3e66ddb670bcc2501139eb2a;p=gostls13.git sync: make clear that WaitGroup.Done decrements by one Change-Id: Ief076151739147378f8ca35cd09aabb59c3c9a52 Reviewed-on: https://go-review.googlesource.com/46350 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/sync/waitgroup.go b/src/sync/waitgroup.go index 4b23540ae7..f266f7c2b9 100644 --- a/src/sync/waitgroup.go +++ b/src/sync/waitgroup.go @@ -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) }