mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-08-15 02:51:34 +00:00
ch8: fix code format
This commit is contained in:
@@ -18,8 +18,8 @@ func printer(in chan int)
|
||||
|
||||
這是改進的版本,這一次參數使用了單方向channel類型:
|
||||
|
||||
<u><i>gopl.io/ch8/pipeline3</i></u>
|
||||
```Go
|
||||
gopl.io/ch8/pipeline3
|
||||
func counter(out chan<- int) {
|
||||
for x := 0; x < 100; x++ {
|
||||
out <- x
|
||||
|
Reference in New Issue
Block a user