Added line header to print line results.
This commit is contained in:
parent
c7e15d664a
commit
3b632be7a5
@ -49,6 +49,6 @@ func main() {
|
|||||||
// finished. An alternative way to wait for multiple
|
// finished. An alternative way to wait for multiple
|
||||||
// goroutines is to use a [WaitGroup](waitgroups).
|
// goroutines is to use a [WaitGroup](waitgroups).
|
||||||
for a := 1; a <= numJobs; a++ {
|
for a := 1; a <= numJobs; a++ {
|
||||||
fmt.Println( <- results )
|
fmt.Println( "results", <- results )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user