mirror of
https://github.com/golang/go
synced 2024-11-25 03:07:56 -07:00
remove leftover forward-decl syntax and example
(per feedback from Austin) R=rsc DELTA=7 (0 added, 2 deleted, 5 changed) OCL=34158 CL=34161
This commit is contained in:
parent
aeaab597db
commit
bdec330c85
@ -1503,7 +1503,7 @@ 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>
|
||||
@ -1514,8 +1514,6 @@ type (
|
||||
Polar Point
|
||||
)
|
||||
|
||||
type Comparable interface
|
||||
|
||||
type TreeNode struct {
|
||||
left, right *TreeNode;
|
||||
value *Comparable;
|
||||
|
Loading…
Reference in New Issue
Block a user