Commit a818ddd9 authored by Robert Griesemer's avatar Robert Griesemer

cmd/compile/internal/syntax: update a couple of comments

Change-Id: Ie84d0e61697922c1e808d815fb7d9aec694ee8e9
Reviewed-on: https://go-review.googlesource.com/104615Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
parent ac43de3a
...@@ -280,8 +280,7 @@ type ( ...@@ -280,8 +280,7 @@ type (
// map[Key]Value // map[Key]Value
MapType struct { MapType struct {
Key Expr Key, Value Expr
Value Expr
expr expr
} }
...@@ -385,7 +384,7 @@ type ( ...@@ -385,7 +384,7 @@ type (
Init SimpleStmt Init SimpleStmt
Cond Expr Cond Expr
Then *BlockStmt Then *BlockStmt
Else Stmt // either *IfStmt or *BlockStmt Else Stmt // either nil, *IfStmt, or *BlockStmt
stmt stmt
} }
...@@ -399,7 +398,7 @@ type ( ...@@ -399,7 +398,7 @@ type (
SwitchStmt struct { SwitchStmt struct {
Init SimpleStmt Init SimpleStmt
Tag Expr Tag Expr // incl. *TypeSwitchGuard
Body []*CaseClause Body []*CaseClause
Rbrace Pos Rbrace Pos
stmt stmt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment