Update examples/waitgroup/waitgroup.go

Co-Authored-By: Mark McGranaghan <mmcgrana@gmail.com>
This commit is contained in:
Eli Bendersky
2019-05-30 05:54:10 -07:00
committed by GitHub
parent 705f713db2
commit 2967315795

View File

@@ -29,7 +29,7 @@ func main() {
// goroutines launched here to finish.
var wg sync.WaitGroup
// Launch several goroutines and increment the WorkGroup
// Launch several goroutines and increment the WaitGroup
// counter for each.
for i := 1; i <= 5; i++ {
wg.Add(1)