fix: wording

This commit is contained in:
thetnaingtn 2023-10-14 20:17:59 +07:00
parent 280343552e
commit 42221294dc

View file

@ -1704,7 +1704,7 @@ for i := 0; i < 3; i++ {
}() }()
} }
wg.Wait() wg.Wait()
fmt.Println(v) fmt.Println(v) // can print any value from 0 to 3.
``` ```
To deterministically set the counter, the `wg.Add` should be called before spinning up the goroutine: To deterministically set the counter, the `wg.Add` should be called before spinning up the goroutine:
```go ```go