From: Robert Griesemer Date: Fri, 7 Mar 2008 05:24:57 +0000 (-0800) Subject: - fixed a couple of grammar errors X-Git-Tag: weekly.2009-11-06~3839 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5009237adbaccbaca89eed21f6cb69193b213fbc;p=gostls13.git - fixed a couple of grammar errors SVN=111685 --- diff --git a/doc/go_lang.txt b/doc/go_lang.txt index 3002d0cda2..ed44eb4a00 100644 --- a/doc/go_lang.txt +++ b/doc/go_lang.txt @@ -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 formal parameters for functions. - ArrayType = { '[' ArrayLength ']' } ElementType. - ArrayLength = Expression. - ElementType = Type. + ArrayType = '[' [ ArrayLength ] ']' ElementType . + ArrayLength = Expression . + ElementType = Type . [] uint8 [2*n] int @@ -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 ()