From 0660d243b1cbd5716e23a6495f3637dfee2cb4f9 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Sun, 15 Nov 2009 17:42:27 -0800 Subject: [PATCH] Use ElementType consistently. Fixes #173. R=r, rsc, r1 https://golang.org/cl/154156 --- doc/go_spec.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index c533f0af76d..cba73ce8364 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -966,7 +966,7 @@ type File interface {

A map is an unordered group of elements of one type, called the -value type, indexed by a set of unique keys of another type, +element type, indexed by a set of unique keys of another type, called the key type. A map value may be nil. @@ -975,7 +975,6 @@ A map value may be nil.

 MapType     = "map" "[" KeyType "]" ElementType .
 KeyType     = Type .
-ValueType   = Type .
 

@@ -1030,9 +1029,9 @@ A value of channel type may be nil.

 ChannelType   = Channel | SendChannel | RecvChannel .
-Channel       = "chan" ValueType .
-SendChannel   = "chan" "<-" ValueType .
-RecvChannel   = "<-" "chan" ValueType .
+Channel       = "chan" ElementType .
+SendChannel   = "chan" "<-" ElementType .
+RecvChannel   = "<-" "chan" ElementType .