docs: channel

This commit is contained in:
Shikong 2021-11-09 01:02:36 +08:00
parent f4636be23b
commit 016c89dfd2

View File

@ -30,7 +30,7 @@ func main() {
fmt.Println("goroutine 接收: 等待接收 通道 b 中的值")
// 从通道 b 接收一个值
t := <-b
fmt.Println(t)
fmt.Printf("goroutine 接收: %d\n", t)
wg.Done()
}()