1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

Merge pull request #78 from fuwensun/patch-1

1.5节例子修正
This commit is contained in:
Xargin 2018-06-13 14:51:13 +08:00 committed by GitHub
commit 936cb8b489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,8 @@ func worker(wg *sync.WaitGroup) {
}
func main() {
var wg sync.WaitGroup
wg.Add(2)
go worker(&wg)
go worker(&wg)
wg.Wait()