mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00:00
Use ElementType consistently.
Fixes #173. R=r, rsc, r1 https://golang.org/cl/154156
This commit is contained in:
parent
ef46a9ddac
commit
0660d243b1
1 changed files with 4 additions and 5 deletions
|
@ -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" "<-" ValueType .
|
||||
RecvChannel = "<-" "chan" ValueType .
|
||||
Channel = "chan" ElementType .
|
||||
SendChannel = "chan" "<-" ElementType .
|
||||
RecvChannel = "<-" "chan" ElementType .
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Reference in a new issue