1
0
mirror of https://github.com/golang/go synced 2024-07-03 00:40:45 +00:00

all: use the indefinite article an in comments

Change-Id: I8787458f9ccd3b5cdcdda820d8a45deb4f77eade
GitHub-Last-Rev: be865d67ef
GitHub-Pull-Request: golang/go#63165
Reviewed-on: https://go-review.googlesource.com/c/go/+/530120
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
Jes Cok 2023-09-22 23:27:51 +00:00 committed by Gopher Robot
parent 51d2e9cbfa
commit 81c5d92f52
9 changed files with 9 additions and 9 deletions

View File

@ -1822,7 +1822,7 @@ func TestBaseOffsetPlusOverflow(t *testing.T) {
}
}()
// Previously, this would trigger a panic as we attempt to read from
// a io.SectionReader which would access a slice at a negative offset
// an io.SectionReader which would access a slice at a negative offset
// as the section reader offset & size were < 0.
NewReader(bytes.NewReader(data), int64(len(data))+1875)
}

View File

@ -477,7 +477,7 @@ func (c *DiskCache) putIndexEntry(id ActionID, out OutputID, size int64, allowVe
return nil
}
// noVerifyReadSeeker is a io.ReadSeeker wrapper sentinel type
// noVerifyReadSeeker is an io.ReadSeeker wrapper sentinel type
// that says that Cache.Put should skip the verify check
// (from GODEBUG=goverifycache=1).
type noVerifyReadSeeker struct {

View File

@ -1443,7 +1443,7 @@ type metaImport struct {
Prefix, VCS, RepoRoot string
}
// A ImportMismatchError is returned where metaImport/s are present
// An ImportMismatchError is returned where metaImport/s are present
// but none match our import path.
type ImportMismatchError struct {
importPath string

View File

@ -69,7 +69,7 @@ type SessionState struct {
// To allow different layers in a protocol stack to share this field,
// applications must only append to it, not replace it, and must use entries
// that can be recognized even if out of order (for example, by starting
// with a id and version prefix).
// with an id and version prefix).
Extra [][]byte
// EarlyData indicates whether the ticket can be used for 0-RTT in a QUIC

View File

@ -368,7 +368,7 @@ var verifyTests = []verifyTest{
},
},
{
// When there are two parents, one with a incorrect subject but matching SKID
// When there are two parents, one with an incorrect subject but matching SKID
// and one with a correct subject but missing SKID, the latter should be
// considered as a possible parent.
leaf: leafMatchingAKIDMatchingIssuer,

View File

@ -3652,7 +3652,7 @@ func TestDisableSHA1ForCertOnly(t *testing.T) {
}
// This is an unrelated OCSP response, which will fail signature verification
// but shouldn't return a InsecureAlgorithmError, since SHA1 should be allowed
// but shouldn't return an InsecureAlgorithmError, since SHA1 should be allowed
// for OCSP.
ocspTBSHex := "30819fa2160414884451ff502a695e2d88f421bad90cf2cecbea7c180f32303133303631383037323434335a30743072304a300906052b0e03021a0500041448b60d38238df8456e4ee5843ea394111802979f0414884451ff502a695e2d88f421bad90cf2cecbea7c021100f78b13b946fc9635d8ab49de9d2148218000180f32303133303631383037323434335aa011180f32303133303632323037323434335a"
ocspTBS, err := hex.DecodeString(ocspTBSHex)

View File

@ -28,7 +28,7 @@ const (
trailerStr = "\x3b"
)
// lzw.NewReader wants a io.ByteReader, this ensures we're compatible.
// lzw.NewReader wants an io.ByteReader, this ensures we're compatible.
var _ io.ByteReader = (*blockReader)(nil)
// lzwEncode returns an LZW encoding (with 2-bit literals) of in.

View File

@ -53,7 +53,7 @@ func init() {
// Older linux kernels seem to have some hiccups delivering the signal
// in a timely manner on ppc64 and ppc64le. When running on a
// ppc64le/ubuntu 16.04/linux 4.4 host the time can vary quite
// substantially even on a idle system. 5 seconds is twice any value
// substantially even on an idle system. 5 seconds is twice any value
// observed when running 10000 tests on such a system.
settleTime = 5 * time.Second
} else if s := os.Getenv("GO_TEST_TIMEOUT_SCALE"); s != "" {

View File

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file.
// This test illustrates how a type bound method (String below) can be implemented
// either by a concrete type (myint below) or a instantiated generic type
// either by a concrete type (myint below) or an instantiated generic type
// (StringInt[myint] below).
package main