mirror of
https://github.com/golang/go
synced 2024-11-11 22:40:22 -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>
|
||||
In a channel send, the first operand is always a channel and the
|
||||
second is a value of the channel's element type.
|
||||
In a channel send, the first operand is always a channel and the second
|
||||
must be a value <a href="#Assignment_compatibility">assignment compatible</a>
|
||||
with the channel's element type.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user