diff --git a/eBook/17.1.md b/eBook/17.1.md index c340064b0..bce1a970c 100644 --- a/eBook/17.1.md +++ b/eBook/17.1.md @@ -67,7 +67,8 @@ if value, ok := varI.(T); ok { ```go for { - if input, open := <-ch; !open { + input, open := <-ch + if !open { break // 通道是关闭的 } Process(input)