mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:08:53 +08:00
update comment (#747)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user