]> Cypherpunks repositories - gostls13.git/commitdiff
remove leftover forward-decl syntax and example
authorRobert Griesemer <gri@golang.org>
Tue, 1 Sep 2009 00:57:14 +0000 (17:57 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 1 Sep 2009 00:57:14 +0000 (17:57 -0700)
(per feedback from Austin)

R=rsc
DELTA=7  (0 added, 2 deleted, 5 changed)
OCL=34158
CL=34161

doc/go_spec.html

index 9eebc7a2586c0c9c479750b1b23a186ff792ab19..cc37512a74da25369de3c5cc2290adae32215665 100644 (file)
@@ -1503,19 +1503,17 @@ to a new type.  <font color=red>TODO: what exactly is a "new type"?</font>
 <pre class="ebnf">
 TypeDecl     = "type" ( TypeSpec | "(" [ TypeSpecList ] ")" ) .
 TypeSpecList = TypeSpec { ";" TypeSpec } [ ";" ] .
-TypeSpec     = identifier ( Type | "struct" | "interface" ) .
+TypeSpec     = identifier Type .
 </pre>
 
 <pre>
-type IntArray [16] int
+type IntArray [16]int
 
 type (
        Point struct { x, y float };
        Polar Point
 )
 
-type Comparable interface
-
 type TreeNode struct {
        left, right *TreeNode;
        value *Comparable;