Clarify comment
Remove an ambiguous part of the comment that can cause confusion - passing a WaitGroup by pointer is always mandatory.
This commit is contained in:
@@ -23,8 +23,6 @@ func main() {
|
||||
// This WaitGroup is used to wait for all the
|
||||
// goroutines launched here to finish. Note: if a WaitGroup is
|
||||
// explicitly passed into functions, it should be done *by pointer*.
|
||||
// This would be important if, for example, our worker had to launch
|
||||
// additional goroutines.
|
||||
var wg sync.WaitGroup
|
||||
|
||||
// Launch several goroutines and increment the WaitGroup
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
58031ceb701a1cab27498efd89adadbf1ea6b3e6
|
||||
vmjCBfN6MJE
|
||||
66d1c1cdb7e60f63b9b30938aa9c63b2262463ac
|
||||
S98GjeaGBX0
|
||||
|
||||
Reference in New Issue
Block a user