mirror of
https://github.com/golang/go
synced 2024-11-18 10:24:42 -07:00
all: remove duplicate word "the"
This commit is contained in:
parent
a156fc08b7
commit
545a40571a
@ -187,7 +187,7 @@ type Header struct {
|
|||||||
// The key and value should be non-empty UTF-8 strings.
|
// The key and value should be non-empty UTF-8 strings.
|
||||||
//
|
//
|
||||||
// When Writer.WriteHeader is called, PAX records derived from the
|
// When Writer.WriteHeader is called, PAX records derived from the
|
||||||
// the other fields in Header take precedence over PAXRecords.
|
// other fields in Header take precedence over PAXRecords.
|
||||||
PAXRecords map[string]string
|
PAXRecords map[string]string
|
||||||
|
|
||||||
// Format specifies the format of the tar header.
|
// Format specifies the format of the tar header.
|
||||||
|
@ -167,7 +167,7 @@ const (
|
|||||||
|
|
||||||
// R_ADDRPOWER_PCREL relocates two D-form instructions like R_ADDRPOWER, but
|
// R_ADDRPOWER_PCREL relocates two D-form instructions like R_ADDRPOWER, but
|
||||||
// inserts the displacement from the place being relocated to the address of the
|
// inserts the displacement from the place being relocated to the address of the
|
||||||
// the relocated symbol instead of just its address.
|
// relocated symbol instead of just its address.
|
||||||
R_ADDRPOWER_PCREL
|
R_ADDRPOWER_PCREL
|
||||||
|
|
||||||
// R_ADDRPOWER_TOCREL relocates two D-form instructions like R_ADDRPOWER, but
|
// R_ADDRPOWER_TOCREL relocates two D-form instructions like R_ADDRPOWER, but
|
||||||
|
@ -583,7 +583,7 @@ func (ctxt *Link) loadlib() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If package versioning is required, generate a hash of the
|
// If package versioning is required, generate a hash of the
|
||||||
// the packages used in the link.
|
// packages used in the link.
|
||||||
if ctxt.BuildMode == BuildModeShared || ctxt.BuildMode == BuildModePlugin || ctxt.CanUsePlugins() {
|
if ctxt.BuildMode == BuildModeShared || ctxt.BuildMode == BuildModePlugin || ctxt.CanUsePlugins() {
|
||||||
for _, lib := range ctxt.Library {
|
for _, lib := range ctxt.Library {
|
||||||
if lib.Shlib == "" {
|
if lib.Shlib == "" {
|
||||||
|
@ -1003,7 +1003,7 @@ type rowsCursor struct {
|
|||||||
err error
|
err error
|
||||||
|
|
||||||
// a clone of slices to give out to clients, indexed by the
|
// a clone of slices to give out to clients, indexed by the
|
||||||
// the original slice's first byte address. we clone them
|
// original slice's first byte address. we clone them
|
||||||
// just so we're able to corrupt them on close.
|
// just so we're able to corrupt them on close.
|
||||||
bytesClone map[*byte][]byte
|
bytesClone map[*byte][]byte
|
||||||
|
|
||||||
|
@ -2310,7 +2310,7 @@ func (s *Stmt) connStmt(ctx context.Context, strategy connReuseStrategy) (dc *dr
|
|||||||
}
|
}
|
||||||
|
|
||||||
// In a transaction or connection, we always use the connection that the
|
// In a transaction or connection, we always use the connection that the
|
||||||
// the stmt was created on.
|
// stmt was created on.
|
||||||
if s.cg != nil {
|
if s.cg != nil {
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
dc, releaseConn, err = s.cg.grabConn(ctx) // blocks, waiting for the connection.
|
dc, releaseConn, err = s.cg.grabConn(ctx) // blocks, waiting for the connection.
|
||||||
|
@ -198,7 +198,7 @@ type Decoder struct {
|
|||||||
// charset-conversion readers, converting from the provided
|
// charset-conversion readers, converting from the provided
|
||||||
// non-UTF-8 charset into UTF-8. If CharsetReader is nil or
|
// non-UTF-8 charset into UTF-8. If CharsetReader is nil or
|
||||||
// returns an error, parsing stops with an error. One of the
|
// returns an error, parsing stops with an error. One of the
|
||||||
// the CharsetReader's result values must be non-nil.
|
// CharsetReader's result values must be non-nil.
|
||||||
CharsetReader func(charset string, input io.Reader) (io.Reader, error)
|
CharsetReader func(charset string, input io.Reader) (io.Reader, error)
|
||||||
|
|
||||||
// DefaultSpace sets the default name space used for unadorned tags,
|
// DefaultSpace sets the default name space used for unadorned tags,
|
||||||
|
@ -197,7 +197,7 @@ func (p *printer) exprList(prev0 token.Pos, list []ast.Expr, depth int, mode exp
|
|||||||
|
|
||||||
// if the previous line and the current line had single-
|
// if the previous line and the current line had single-
|
||||||
// line-expressions and the key sizes are small or the
|
// line-expressions and the key sizes are small or the
|
||||||
// the ratio between the key sizes does not exceed a
|
// ratio between the key sizes does not exceed a
|
||||||
// threshold, align columns and do not use formfeed
|
// threshold, align columns and do not use formfeed
|
||||||
if prevSize > 0 && size > 0 {
|
if prevSize > 0 && size > 0 {
|
||||||
const smallSize = 20
|
const smallSize = 20
|
||||||
|
@ -417,7 +417,7 @@ func nudge(c context) context {
|
|||||||
|
|
||||||
// join joins the two contexts of a branch template node. The result is an
|
// join joins the two contexts of a branch template node. The result is an
|
||||||
// error context if either of the input contexts are error contexts, or if the
|
// error context if either of the input contexts are error contexts, or if the
|
||||||
// the input contexts differ.
|
// input contexts differ.
|
||||||
func join(a, b context, node parse.Node, nodeName string) context {
|
func join(a, b context, node parse.Node, nodeName string) context {
|
||||||
if a.state == stateError {
|
if a.state == stateError {
|
||||||
return a
|
return a
|
||||||
|
@ -1546,7 +1546,7 @@ func newMarkBits(nelems uintptr) *gcBits {
|
|||||||
// to be used for this span's alloc bits.
|
// to be used for this span's alloc bits.
|
||||||
// newAllocBits is used to provide newly initialized spans
|
// newAllocBits is used to provide newly initialized spans
|
||||||
// allocation bits. For spans not being initialized the
|
// allocation bits. For spans not being initialized the
|
||||||
// the mark bits are repurposed as allocation bits when
|
// mark bits are repurposed as allocation bits when
|
||||||
// the span is swept.
|
// the span is swept.
|
||||||
func newAllocBits(nelems uintptr) *gcBits {
|
func newAllocBits(nelems uintptr) *gcBits {
|
||||||
return newMarkBits(nelems)
|
return newMarkBits(nelems)
|
||||||
|
Loading…
Reference in New Issue
Block a user