mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
update comment (#747)
This commit is contained in:
@@ -267,7 +267,7 @@ func compute(ch chan int){
|
||||
|
||||
func main(){
|
||||
ch := make(chan int) // allocate a channel.
|
||||
go compute(ch) // stat something in a goroutines
|
||||
go compute(ch) // start something in a goroutines
|
||||
doSomethingElseForAWhile()
|
||||
result := <- ch
|
||||
}
|
||||
|
Reference in New Issue
Block a user