]> Cypherpunks repositories - gostls13.git/commitdiff
- fixed a couple of grammar errors
authorRobert Griesemer <gri@golang.org>
Fri, 7 Mar 2008 05:24:57 +0000 (21:24 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 7 Mar 2008 05:24:57 +0000 (21:24 -0800)
SVN=111685

doc/go_lang.txt

index 3002d0cda200b6c57b058e08f16e0043ed74bee0..ed44eb4a000dd18dbf3310d29343fa13d2904049 100644 (file)
@@ -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 ()