mirror of
https://github.com/golang/go
synced 2024-11-22 07:04:40 -07:00
Use ElementType consistently.
Fixes #173. R=r, rsc, r1 https://golang.org/cl/154156
This commit is contained in:
parent
ef46a9ddac
commit
0660d243b1
@ -966,7 +966,7 @@ type File interface {
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
A map is an unordered group of elements of one type, called the
|
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.
|
called the key type.
|
||||||
A map value may be <code>nil</code>.
|
A map value may be <code>nil</code>.
|
||||||
|
|
||||||
@ -975,7 +975,6 @@ A map value may be <code>nil</code>.
|
|||||||
<pre class="ebnf">
|
<pre class="ebnf">
|
||||||
MapType = "map" "[" KeyType "]" ElementType .
|
MapType = "map" "[" KeyType "]" ElementType .
|
||||||
KeyType = Type .
|
KeyType = Type .
|
||||||
ValueType = Type .
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -1030,9 +1029,9 @@ A value of channel type may be <code>nil</code>.
|
|||||||
|
|
||||||
<pre class="ebnf">
|
<pre class="ebnf">
|
||||||
ChannelType = Channel | SendChannel | RecvChannel .
|
ChannelType = Channel | SendChannel | RecvChannel .
|
||||||
Channel = "chan" ValueType .
|
Channel = "chan" ElementType .
|
||||||
SendChannel = "chan" "<-" ValueType .
|
SendChannel = "chan" "<-" ElementType .
|
||||||
RecvChannel = "<-" "chan" ValueType .
|
RecvChannel = "<-" "chan" ElementType .
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user