Update examples/waitgroup/waitgroup.go

Co-Authored-By: Mark McGranaghan <mmcgrana@gmail.com>
This commit is contained in:
Eli Bendersky 2019-05-30 06:07:12 -07:00 committed by GitHub
parent c7dd69349b
commit 074571d952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ func main() {
go worker(i, &wg) go worker(i, &wg)
} }
// Block until the WorkGroup counter goes back to 0; // Block until the WaitGroup counter goes back to 0;
// all the workers notified they're done. // all the workers notified they're done.
wg.Wait() wg.Wait()
} }