Commit 4b4bb53b authored by Alberto Donizetti's avatar Alberto Donizetti

sync: make clear that WaitGroup.Done decrements by one

Change-Id: Ief076151739147378f8ca35cd09aabb59c3c9a52
Reviewed-on: https://go-review.googlesource.com/46350Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent ded29e7b
......@@ -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)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment