]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: use the indefinite article an in comments
authorJes Cok <xigua67damn@gmail.com>
Fri, 22 Sep 2023 23:27:51 +0000 (23:27 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 25 Sep 2023 14:29:30 +0000 (14:29 +0000)
Change-Id: I8787458f9ccd3b5cdcdda820d8a45deb4f77eade
GitHub-Last-Rev: be865d67ef68815b8c1c2a9ad222fff594620e66
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>
src/archive/zip/reader_test.go
src/cmd/go/internal/cache/cache.go
src/cmd/go/internal/vcs/vcs.go
src/crypto/tls/ticket.go
src/crypto/x509/verify_test.go
src/crypto/x509/x509_test.go
src/image/gif/reader_test.go
src/os/signal/signal_test.go
test/typeparam/boundmethod.go

index a1ae1c97cc02daac9b4268d11193a00f24a70645..631515cf5d2d7c06c38c19581b82e8fffcab5b08 100644 (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)
 }
index 4a82d27e7abfab0591757f12d43fa288c05b5e9c..14b2deccd4d18e9bc8365c662b3f5268ed731a31 100644 (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 {
index 2a881794043715784f70faf720eed71a03e117ee..a86ed07d3fd8e06d58384502eb6278224aed64fc 100644 (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
index b43101ff6658c19476233e1b305f50729a480261..b5ae35b67ef00525915609ec1121fdb9a0e8f77e 100644 (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
index 3551b470ced3d304e095b36da3068c52ea2c1093..b1dddb644b803f26ae69ed4b0219b7416a41e1b9 100644 (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,
index 19deeab54d96e2488091ee2ebb8edba1653db397..9a80b2b4343325997570d6f7a988714781338aed 100644 (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)
index a7f943adeb76ea9c125a0a40fc9ffd0349c98105..f90ebc5d7d1fad5aa8416f43bb0445c11b6c8be7 100644 (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.
index e7575eb70e2c7d78248f10f5d2e91a449b16f681..35f1620c5d219669cc04d89769df47f8b7c26002 100644 (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 != "" {
index 510519a2742d3f1811e6d05e1776c9f5b86a7d4c..b78318cced6f08df087c4e9bc05b98c3b43bbb90 100644 (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