]> Cypherpunks repositories - gostls13.git/commitdiff
Use ElementType consistently.
authorRobert Griesemer <gri@golang.org>
Mon, 16 Nov 2009 01:42:27 +0000 (17:42 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 16 Nov 2009 01:42:27 +0000 (17:42 -0800)
Fixes #173.

R=r, rsc, r1
https://golang.org/cl/154156

doc/go_spec.html

index c533f0af76d8a3680c85dea70ca2ba0990f3013a..cba73ce836491d29af777e4dc7b27fb15815a31a 100644 (file)
@@ -966,7 +966,7 @@ type File interface {
 
 <p>
 A map is an unordered group of elements of one type, called the
-value type, indexed by a set of unique <i>keys</i> of another type,
+element type, indexed by a set of unique <i>keys</i> of another type,
 called the key type.
 A map value may be <code>nil</code>.
 
@@ -975,7 +975,6 @@ A map value may be <code>nil</code>.
 <pre class="ebnf">
 MapType     = "map" "[" KeyType "]" ElementType .
 KeyType     = Type .
-ValueType   = Type .
 </pre>
 
 <p>
@@ -1030,9 +1029,9 @@ A value of channel type may be <code>nil</code>.
 
 <pre class="ebnf">
 ChannelType   = Channel | SendChannel | RecvChannel .
-Channel       = "chan" ValueType .
-SendChannel   = "chan" "&lt;-" ValueType .
-RecvChannel   = "&lt;-" "chan" ValueType .
+Channel       = "chan" ElementType .
+SendChannel   = "chan" "&lt;-" ElementType .
+RecvChannel   = "&lt;-" "chan" ElementType .
 </pre>
 
 <p>