mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
Update 14.2.md (#550)
This commit is contained in:
@@ -95,7 +95,7 @@ func getData(ch chan string) {
|
|||||||
输出:
|
输出:
|
||||||
|
|
||||||
```
|
```
|
||||||
Washington Tripoli London Beijing Tokio
|
Washington Tripoli London Beijing tokyo
|
||||||
```
|
```
|
||||||
|
|
||||||
`main()` 函数中启动了两个协程:`sendData()` 通过通道 ch 发送了 5 个字符串,`getData()` 按顺序接收它们并打印出来。
|
`main()` 函数中启动了两个协程:`sendData()` 通过通道 ch 发送了 5 个字符串,`getData()` 按顺序接收它们并打印出来。
|
||||||
|
Reference in New Issue
Block a user