update comment (#747)

This commit is contained in:
cashewnut
2019-12-14 15:38:44 +08:00
committed by Unknwon
parent c308fad89f
commit 173fcc518c

View File

@@ -267,7 +267,7 @@ func compute(ch chan int){
func main(){ func main(){
ch := make(chan int) // allocate a channel. ch := make(chan int) // allocate a channel.
go compute(ch) // stat something in a goroutines go compute(ch) // start something in a goroutines
doSomethingElseForAWhile() doSomethingElseForAWhile()
result := <- ch result := <- ch
} }