From: Robert Griesemer Date: Tue, 3 Apr 2018 20:59:14 +0000 (-0700) Subject: cmd/compile/internal/syntax: update a couple of comments X-Git-Tag: go1.11beta1~987 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a818ddd972165564d0660ee867db1d01c41a9723;p=gostls13.git cmd/compile/internal/syntax: update a couple of comments Change-Id: Ie84d0e61697922c1e808d815fb7d9aec694ee8e9 Reviewed-on: https://go-review.googlesource.com/104615 Reviewed-by: Matthew Dempsky --- 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