Skip to content

Commit

Permalink
Fix #520 (unknwon#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynn authored and unknwon committed Jul 16, 2018
1 parent a30c3bb commit de3c7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBook/14.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ch1 = make(chan string)

这里我们构建一个int通道的通道: `chanOfChans := make(chan int)`

或者函数通道:`funcChan := chan func()`(相关示例请看第 [14.17](14.17.md) 节)。
或者函数通道:`funcChan := make(chan func())`(相关示例请看第 [14.17](14.17.md) 节)。

所以通道是对象的第一类型:可以存储在变量中,作为函数的参数传递,从函数返回以及通过通道发送它们自身。另外它们是类型化的,允许类型检查,比如尝试使用整数通道发送一个指针。

Expand Down

0 comments on commit de3c7db

Please sign in to comment.