]> Cypherpunks repositories - gostls13.git/commitdiff
- fixed double-definition of StructType
authorRobert Griesemer <gri@golang.org>
Fri, 7 Mar 2008 06:11:51 +0000 (22:11 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 7 Mar 2008 06:11:51 +0000 (22:11 -0800)
SVN=111689

doc/go_lang.txt

index b0558f8f4f62c222e2ba97b7888fdf91bad573a2..3159b3f3f01e3cff1a14ab2ecb549382bfcd6cb4 100644 (file)
@@ -623,8 +623,7 @@ Struct literals represent struct constants.  They comprise a list of
 expressions that represent the individual fields of a struct.  The
 individual expressions must match those of the specified struct type.
 
-  StructLit = StructType '(' [ ExpressionList ] ')' .
-  StructType = TypeName .
+  StructLit = TypeName '(' [ ExpressionList ] ')' .
 
 The type name must be that of a defined struct type.