Skip to content

Commit 1faea29

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some typos in comment
Change-Id: Ia209f0a6d9b19d14e655c65d1287a1416b48c487 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/707535 Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com> Auto-Submit: Sean Liao <sean@liao.dev> Reviewed-by: Nicola Murino <nicola.murino@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Sean Liao <sean@liao.dev>
1 parent 627cb89 commit 1faea29

File tree

17 files changed

+20
-20
lines changed

17 files changed

+20
-20
lines changed

acme/autocert/internal/acmetest/ca.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (ca *CAServer) URL() string {
145145
return ca.url
146146
}
147147

148-
// Roots returns a pool cointaining the CA root.
148+
// Roots returns a pool containing the CA root.
149149
func (ca *CAServer) Roots() *x509.CertPool {
150150
if ca.url == "" {
151151
panic("Roots called before Start")

acme/rfc8555.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (c *Client) AuthorizeOrder(ctx context.Context, id []AuthzID, opt ...OrderO
232232
return responseOrder(res)
233233
}
234234

235-
// GetOrder retrives an order identified by the given URL.
235+
// GetOrder retrieves an order identified by the given URL.
236236
// For orders created with AuthorizeOrder, the url value is Order.URI.
237237
//
238238
// If a caller needs to poll an order until its status is final,

chacha20/chacha_arm64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ loop:
2929
MOVD $NUM_ROUNDS, R21
3030
VLD1 (R11), [V30.S4, V31.S4]
3131

32-
// load contants
32+
// load constants
3333
// VLD4R (R10), [V0.S4, V1.S4, V2.S4, V3.S4]
3434
WORD $0x4D60E940
3535

internal/wycheproof/rsa_pss_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func TestRsaPss(t *testing.T) {
141141
}
142142
// Run all the tests twice: the first time with the salt length
143143
// as PSSSaltLengthAuto, and the second time with the salt length
144-
// explictily set to tg.SLen.
144+
// explicitly set to tg.SLen.
145145
for i := 0; i < 2; i++ {
146146
for _, sig := range tg.Tests {
147147
h.Reset()

nacl/box/box_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func TestSealOpenAnonymous(t *testing.T) {
114114
t.Fatal("expected out to be unchanged")
115115
}
116116
if !bytes.HasPrefix(box, orig) {
117-
t.Fatal("expected out to be coppied to returned slice")
117+
t.Fatal("expected out to be copied to returned slice")
118118
}
119119
_, ok = OpenAnonymous(nil, box[len(out):], publicKey, privateKey)
120120
if !ok {

nacl/sign/sign_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ func TestGenerateSignOpen(t *testing.T) {
6969
}
7070

7171
if !bytes.Equal(message, testMessage) {
72-
t.Fatalf("verified message does not match signed messge, got\n%x\n, expected\n%x", message, testMessage)
72+
t.Fatalf("verified message does not match signed message, got\n%x\n, expected\n%x", message, testMessage)
7373
}
7474
}

openpgp/packet/opaque_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func TestOpaqueParseReason(t *testing.T) {
5151
const expectedBad = 3
5252
// Test post-conditions, make sure we actually parsed packets as expected.
5353
if badPackets != expectedBad {
54-
t.Errorf("unexpected # unparseable packets: %d (want %d)", badPackets, expectedBad)
54+
t.Errorf("unexpected # unparsable packets: %d (want %d)", badPackets, expectedBad)
5555
}
5656
if uid == nil {
5757
t.Errorf("failed to find expected UID in unsupported keyring")

openpgp/s2k/s2k.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (c *Config) hash() crypto.Hash {
5353

5454
func (c *Config) encodedCount() uint8 {
5555
if c == nil || c.S2KCount == 0 {
56-
return 96 // The common case. Correspoding to 65536
56+
return 96 // The common case. Corresponding to 65536
5757
}
5858

5959
i := c.S2KCount

ssh/agent/keyring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (r *keyring) Unlock(passphrase []byte) error {
112112
}
113113

114114
// expireKeysLocked removes expired keys from the keyring. If a key was added
115-
// with a lifetimesecs contraint and seconds >= lifetimesecs seconds have
115+
// with a lifetimesecs constraint and seconds >= lifetimesecs seconds have
116116
// elapsed, it is removed. The caller *must* be holding the keyring mutex.
117117
func (r *keyring) expireKeysLocked() {
118118
for _, k := range r.keys {

ssh/agent/keyring_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func validateListedKeys(t *testing.T, a Agent, expectedKeys []string) {
3030
return
3131
}
3232
if len(listedKeys) != len(expectedKeys) {
33-
t.Fatalf("expeted %d key, got %d", len(expectedKeys), len(listedKeys))
33+
t.Fatalf("expected %d key, got %d", len(expectedKeys), len(listedKeys))
3434
return
3535
}
3636
actualKeys := make(map[string]bool)

0 commit comments

Comments
 (0)