]> Cypherpunks repositories - gostls13.git/commitdiff
clarify rule for channel send
authorRobert Griesemer <gri@golang.org>
Thu, 29 Oct 2009 01:17:24 +0000 (18:17 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 29 Oct 2009 01:17:24 +0000 (18:17 -0700)
R=rsc
CC=go-dev
http://go/go-review/1018002

doc/go_spec.html

index c743f6d04d4809508c580d3b092c47c02f5ee77a..c1ab22b7aed2899ff39c03885198f3ef0f4396f7 100644 (file)
@@ -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>