mirror of
https://github.com/golang/go
synced 2024-11-22 01:24:42 -07:00
- fixed a couple of grammar errors
SVN=111685
This commit is contained in:
parent
250767174b
commit
5009237adb
@ -532,7 +532,7 @@ Any array may be assigned to an open array variable with the
|
||||
same element type. Typically, open arrays are used as
|
||||
formal parameters for functions.
|
||||
|
||||
ArrayType = { '[' ArrayLength ']' } ElementType.
|
||||
ArrayType = '[' [ ArrayLength ] ']' ElementType .
|
||||
ArrayLength = Expression .
|
||||
ElementType = Type .
|
||||
|
||||
@ -687,7 +687,7 @@ Functions can return multiple values simultaneously.
|
||||
Parameters = '(' [ ParameterList ] ')' .
|
||||
ParameterList = ParameterSection { ',' ParameterSection } .
|
||||
ParameterSection = [ IdentifierList ] Type .
|
||||
Result = [ Type ] | '(' ParameterList ')' .
|
||||
Result = Type | '(' ParameterList ')' .
|
||||
|
||||
// Function types
|
||||
func ()
|
||||
|
Loading…
Reference in New Issue
Block a user