1
0
mirror of https://github.com/golang/go synced 2024-09-29 13:34:30 -06:00

cmd/compile: fix typos

This commit is contained in:
wangyuntao 2021-08-17 11:02:34 +08:00
parent a8d39f151d
commit f1cc29dc28
3 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ func (l *location) isName(c ir.Class) bool {
return l.n != nil && l.n.Op() == ir.ONAME && l.n.(*ir.Name).Class == c
}
// An hole represents a context for evaluation a Go
// A hole represents a context for evaluation of a Go
// expression. E.g., when evaluating p in "x = **p", we'd have a hole
// with dst==x and derefs==2.
type hole struct {

View File

@ -275,7 +275,7 @@ func (n *ConvExpr) SetOp(op Op) {
}
}
// An IndexExpr is an index expression X[Y].
// An IndexExpr is an index expression X[Index].
type IndexExpr struct {
miniExpr
X Node

View File

@ -244,7 +244,7 @@ func NewGoDeferStmt(pos src.XPos, op Op, call Node) *GoDeferStmt {
return n
}
// A IfStmt is a return statement: if Init; Cond { Then } else { Else }.
// An IfStmt is a return statement: if Init; Cond { Body } else { Else }.
type IfStmt struct {
miniStmt
Cond Node