fix format.

This commit is contained in:
Bo-Yi Wu
2016-04-05 17:25:50 +08:00
committed by Unknwon
parent 43afd9172e
commit 6e83ef2668

View File

@@ -61,9 +61,11 @@ if value, ok := varI.(T); ok {
for input := range ch { for input := range ch {
Process(input) Process(input)
} }
```
或者: 或者:
```go
for { for {
if input, open := <-ch; !open { if input, open := <-ch; !open {
break // 通道是关闭的 break // 通道是关闭的