Skip to content

Commit 1d187fd

Browse files
scopgopherbot
authored andcommitted
src: a/an grammar fixes
Change-Id: I179b50ae8e73677d4d408b83424afbbfe6aa17a1 GitHub-Last-Rev: 2e2d9c1 GitHub-Pull-Request: golang#63478 Reviewed-on: https://go-review.googlesource.com/c/go/+/534015 Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
1 parent 7523791 commit 1d187fd

File tree

20 files changed

+20
-20
lines changed

20 files changed

+20
-20
lines changed

src/cmd/compile/internal/devirtualize/devirtualize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func staticCall(call *ir.CallExpr) {
7070
return
7171
}
7272

73-
// If typ *has* a shape type, then it's an shaped, instantiated
73+
// If typ *has* a shape type, then it's a shaped, instantiated
7474
// type like T[go.shape.int], and its methods (may) have an extra
7575
// dictionary parameter. We could devirtualize this call if we
7676
// could derive an appropriate dictionary argument.

src/cmd/compile/internal/escape/graph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
// e.value(k, n.Left)
3939
// }
4040

41-
// An location represents an abstract location that stores a Go
41+
// A location represents an abstract location that stores a Go
4242
// variable.
4343
type location struct {
4444
n ir.Node // represented variable or expression, if any

src/cmd/compile/internal/ir/expr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func NewKeyExpr(pos src.XPos, key, value Node) *KeyExpr {
350350
return n
351351
}
352352

353-
// A StructKeyExpr is an Field: Value composite literal key.
353+
// A StructKeyExpr is a Field: Value composite literal key.
354354
type StructKeyExpr struct {
355355
miniExpr
356356
Field *types.Field

src/cmd/compile/internal/ssa/magic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func smagicOK(n uint, c int64) bool {
170170
return c&(c-1) != 0
171171
}
172172

173-
// smagicOKn reports whether we should strength reduce an signed n-bit divide by c.
173+
// smagicOKn reports whether we should strength reduce a signed n-bit divide by c.
174174
func smagicOK8(c int8) bool { return smagicOK(8, int64(c)) }
175175
func smagicOK16(c int16) bool { return smagicOK(16, int64(c)) }
176176
func smagicOK32(c int32) bool { return smagicOK(32, int64(c)) }

src/cmd/compile/internal/types2/builtins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ func hasVarSize(t Type, seen map[*Named]bool) (varSized bool) {
954954
}
955955

956956
// applyTypeFunc applies f to x. If x is a type parameter,
957-
// the result is a type parameter constrained by an new
957+
// the result is a type parameter constrained by a new
958958
// interface bound. The type bounds for that interface
959959
// are computed by applying f to each of the type bounds
960960
// of x. If any of these applications of f return nil,

src/cmd/compile/internal/walk/closure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func walkClosure(clo *ir.ClosureExpr, init *ir.Nodes) ir.Node {
144144
return walkExpr(cfn, init)
145145
}
146146

147-
// closureArgs returns a slice of expressions that an be used to
147+
// closureArgs returns a slice of expressions that can be used to
148148
// initialize the given closure's free variables. These correspond
149149
// one-to-one with the variables in clo.Func.ClosureVars, and will be
150150
// either an ONAME node (if the variable is captured by value) or an

src/cmd/internal/obj/loong64/obj.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
290290
// NOP
291291
//
292292
// The NOP is needed to give the jumps somewhere to land.
293-
// It is a liblink NOP, not an hardware NOP: it encodes to 0 instruction bytes.
293+
// It is a liblink NOP, not a hardware NOP: it encodes to 0 instruction bytes.
294294
//
295295
// We don't generate this for leafs because that means the wrapped
296296
// function was inlined into the wrapper.

src/cmd/link/internal/loader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ func (l *Loader) AttrExternal(i Sym) bool {
988988
return l.attrExternal.Has(l.extIndex(i))
989989
}
990990

991-
// SetAttrExternal sets the "external" property for an host object
991+
// SetAttrExternal sets the "external" property for a host object
992992
// symbol (see AttrExternal).
993993
func (l *Loader) SetAttrExternal(i Sym, v bool) {
994994
if !l.IsExternal(i) {

src/go/types/builtins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ func hasVarSize(t Type, seen map[*Named]bool) (varSized bool) {
953953
}
954954

955955
// applyTypeFunc applies f to x. If x is a type parameter,
956-
// the result is a type parameter constrained by an new
956+
// the result is a type parameter constrained by a new
957957
// interface bound. The type bounds for that interface
958958
// are computed by applying f to each of the type bounds
959959
// of x. If any of these applications of f return nil,

src/net/conf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ func isGateway(h string) bool {
522522
return stringsEqualFold(h, "_gateway")
523523
}
524524

525-
// isOutbound reports whether h should be considered a "outbound"
525+
// isOutbound reports whether h should be considered an "outbound"
526526
// name for the myhostname NSS module.
527527
func isOutbound(h string) bool {
528528
return stringsEqualFold(h, "_outbound")

0 commit comments

Comments
 (0)