@@ -94,7 +94,7 @@ for {
使用for-range语句来读取通道是更好的办法,因为这会自动检测通道是否关闭:
```go
for input := range ch {
- process(input)
+ process(input)
}
```
阻塞和生产者-消费者模式: