Commit daaab44f authored by Daniel Martí's avatar Daniel Martí Committed by Robert Griesemer

go/ast: fix a few incorrect "an" articles

slice, type, and select should all go with "a", not "an", since they all
start with consonant sounds.

Change-Id: I57e96dcbdc571dc21e24096779f2f756ec81103e
Reviewed-on: https://go-review.googlesource.com/c/go/+/210124Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent da4d5858
...@@ -292,7 +292,7 @@ type ( ...@@ -292,7 +292,7 @@ type (
Rbrack token.Pos // position of "]" Rbrack token.Pos // position of "]"
} }
// An SliceExpr node represents an expression followed by slice indices. // A SliceExpr node represents an expression followed by slice indices.
SliceExpr struct { SliceExpr struct {
X Expr // expression X Expr // expression
Lbrack token.Pos // position of "[" Lbrack token.Pos // position of "["
...@@ -662,7 +662,7 @@ type ( ...@@ -662,7 +662,7 @@ type (
Body *BlockStmt // CaseClauses only Body *BlockStmt // CaseClauses only
} }
// An TypeSwitchStmt node represents a type switch statement. // A TypeSwitchStmt node represents a type switch statement.
TypeSwitchStmt struct { TypeSwitchStmt struct {
Switch token.Pos // position of "switch" keyword Switch token.Pos // position of "switch" keyword
Init Stmt // initialization statement; or nil Init Stmt // initialization statement; or nil
...@@ -678,7 +678,7 @@ type ( ...@@ -678,7 +678,7 @@ type (
Body []Stmt // statement list; or nil Body []Stmt // statement list; or nil
} }
// An SelectStmt node represents a select statement. // A SelectStmt node represents a select statement.
SelectStmt struct { SelectStmt struct {
Select token.Pos // position of "select" keyword Select token.Pos // position of "select" keyword
Body *BlockStmt // CommClauses only Body *BlockStmt // CommClauses only
......
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