Skip to content

Commit 0660d24

Browse files
committed
Use ElementType consistently.
Fixes #173. R=r, rsc, r1 https://golang.org/cl/154156
1 parent ef46a9d commit 0660d24

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/go_spec.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ <h3 id="Map_types">Map types</h3>
966966

967967
<p>
968968
A map is an unordered group of elements of one type, called the
969-
value type, indexed by a set of unique <i>keys</i> of another type,
969+
element type, indexed by a set of unique <i>keys</i> of another type,
970970
called the key type.
971971
A map value may be <code>nil</code>.
972972

@@ -975,7 +975,6 @@ <h3 id="Map_types">Map types</h3>
975975
<pre class="ebnf">
976976
MapType = "map" "[" KeyType "]" ElementType .
977977
KeyType = Type .
978-
ValueType = Type .
979978
</pre>
980979

981980
<p>
@@ -1030,9 +1029,9 @@ <h3 id="Channel_types">Channel types</h3>
10301029

10311030
<pre class="ebnf">
10321031
ChannelType = Channel | SendChannel | RecvChannel .
1033-
Channel = "chan" ValueType .
1034-
SendChannel = "chan" "&lt;-" ValueType .
1035-
RecvChannel = "&lt;-" "chan" ValueType .
1032+
Channel = "chan" ElementType .
1033+
SendChannel = "chan" "&lt;-" ElementType .
1034+
RecvChannel = "&lt;-" "chan" ElementType .
10361035
</pre>
10371036

10381037
<p>

0 commit comments

Comments
 (0)