mirror of
https://github.com/golang/go
synced 2024-11-21 14:54:40 -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">
|
||||
Type = TypeName | TypeLit | "(" Type ")" .
|
||||
TypeName = QualifiedIdent.
|
||||
TypeName = QualifiedIdent .
|
||||
TypeLit = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
|
||||
SliceType | MapType | ChannelType .
|
||||
</pre>
|
||||
@ -1831,7 +1831,7 @@ A function declaration binds an identifier to a function (§<a href="#Function_t
|
||||
|
||||
<pre class="ebnf">
|
||||
FunctionDecl = "func" identifier Signature [ Body ] .
|
||||
Body = Block.
|
||||
Body = Block .
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user