diff options
author | Robert Griesemer <gri@golang.org> | 2018-04-03 13:59:14 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2018-04-03 21:57:14 +0000 |
commit | a818ddd972165564d0660ee867db1d01c41a9723 (patch) | |
tree | e3b15b60bdc099c2f5ddf81ef96e4e1d394f95f7 /src/cmd/compile/internal/syntax/nodes.go | |
parent | ac43de3ae5027f61e6b028c806f6b83f80ee5d3b (diff) | |
download | go-a818ddd972165564d0660ee867db1d01c41a9723.tar.gz go-a818ddd972165564d0660ee867db1d01c41a9723.zip |
cmd/compile/internal/syntax: update a couple of comments
Change-Id: Ie84d0e61697922c1e808d815fb7d9aec694ee8e9
Reviewed-on: https://go-review.googlesource.com/104615
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/syntax/nodes.go')
-rw-r--r-- | src/cmd/compile/internal/syntax/nodes.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/syntax/nodes.go b/src/cmd/compile/internal/syntax/nodes.go index c1da4adf52..6d468ed80e 100644 --- a/src/cmd/compile/internal/syntax/nodes.go +++ b/src/cmd/compile/internal/syntax/nodes.go @@ -280,8 +280,7 @@ type ( // map[Key]Value MapType struct { - Key Expr - Value Expr + Key, Value Expr expr } @@ -385,7 +384,7 @@ type ( Init SimpleStmt Cond Expr Then *BlockStmt - Else Stmt // either *IfStmt or *BlockStmt + Else Stmt // either nil, *IfStmt, or *BlockStmt stmt } @@ -399,7 +398,7 @@ type ( SwitchStmt struct { Init SimpleStmt - Tag Expr + Tag Expr // incl. *TypeSwitchGuard Body []*CaseClause Rbrace Pos stmt |