mirror of
https://github.com/golang/go
synced 2024-11-24 18:10:02 -07:00
go spec: fix two grammar typos
R=gri CC=golang-dev https://golang.org/cl/3580042
This commit is contained in:
parent
6fcae0f044
commit
11a016151b
@ -596,7 +596,7 @@ which composes a new type from previously declared types.
|
|||||||
|
|
||||||
<pre class="ebnf">
|
<pre class="ebnf">
|
||||||
Type = TypeName | TypeLit | "(" Type ")" .
|
Type = TypeName | TypeLit | "(" Type ")" .
|
||||||
TypeName = QualifiedIdent.
|
TypeName = QualifiedIdent .
|
||||||
TypeLit = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
|
TypeLit = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
|
||||||
SliceType | MapType | ChannelType .
|
SliceType | MapType | ChannelType .
|
||||||
</pre>
|
</pre>
|
||||||
@ -1831,7 +1831,7 @@ A function declaration binds an identifier to a function (§<a href="#Function_t
|
|||||||
|
|
||||||
<pre class="ebnf">
|
<pre class="ebnf">
|
||||||
FunctionDecl = "func" identifier Signature [ Body ] .
|
FunctionDecl = "func" identifier Signature [ Body ] .
|
||||||
Body = Block.
|
Body = Block .
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user