mirror of
https://github.com/golang/go
synced 2024-11-22 06:04:39 -07:00
clarify rule for channel send
R=rsc CC=go-dev http://go/go-review/1018002
This commit is contained in:
parent
eb63c3fec4
commit
b691e08e2c
@ -2528,8 +2528,9 @@ For operations involving constants only, see the section on
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
In a channel send, the first operand is always a channel and the
|
In a channel send, the first operand is always a channel and the second
|
||||||
second is a value of the channel's element type.
|
must be a value <a href="#Assignment_compatibility">assignment compatible</a>
|
||||||
|
with the channel's element type.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user