From e0c36554b8afb6d1ebd045d94a46334a6f072402 Mon Sep 17 00:00:00 2001 From: daychongyang Date: Tue, 29 Nov 2022 19:16:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=97=E5=8F=B7=20ok=20=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/17.1.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)