Commit 5009237a authored by Robert Griesemer's avatar Robert Griesemer

- fixed a couple of grammar errors

SVN=111685
parent 25076717
...@@ -532,9 +532,9 @@ Any array may be assigned to an open array variable with the ...@@ -532,9 +532,9 @@ Any array may be assigned to an open array variable with the
same element type. Typically, open arrays are used as same element type. Typically, open arrays are used as
formal parameters for functions. formal parameters for functions.
ArrayType = { '[' ArrayLength ']' } ElementType. ArrayType = '[' [ ArrayLength ] ']' ElementType .
ArrayLength = Expression. ArrayLength = Expression .
ElementType = Type. ElementType = Type .
[] uint8 [] uint8
[2*n] int [2*n] int
...@@ -687,7 +687,7 @@ Functions can return multiple values simultaneously. ...@@ -687,7 +687,7 @@ Functions can return multiple values simultaneously.
Parameters = '(' [ ParameterList ] ')' . Parameters = '(' [ ParameterList ] ')' .
ParameterList = ParameterSection { ',' ParameterSection } . ParameterList = ParameterSection { ',' ParameterSection } .
ParameterSection = [ IdentifierList ] Type . ParameterSection = [ IdentifierList ] Type .
Result = [ Type ] | '(' ParameterList ')' . Result = Type | '(' ParameterList ')' .
// Function types // Function types
func () func ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment