Skip to content

Commit 6e253fb

Browse files
authored
fix: correct typos in test and documentation comments (#8526)
This PR fixes various typos.
1 parent a769ed6 commit 6e253fb

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

bdns/dns_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ func TestDNSLookupA(t *testing.T) {
432432
t.Fatalf("LookupA(%s) = %q, but want success", tc.hostname, err)
433433
}
434434
if len(res.Final) != len(tc.wantIPs) {
435-
t.Fatalf("LookupA(%s) retuned %d addrs, but want %d", tc.hostname, len(res.Final), len(tc.wantIPs))
435+
t.Fatalf("LookupA(%s) returned %d addrs, but want %d", tc.hostname, len(res.Final), len(tc.wantIPs))
436436
}
437437
for i := range len(tc.wantIPs) {
438438
if !res.Final[i].A.Equal(tc.wantIPs[i]) {
@@ -517,7 +517,7 @@ func TestDNSLookupAAAA(t *testing.T) {
517517
t.Fatalf("LookupA(%s) = %q, but want success", tc.hostname, err)
518518
}
519519
if len(res.Final) != len(tc.wantIPs) {
520-
t.Fatalf("LookupA(%s) retuned %d addrs, but want %d", tc.hostname, len(res.Final), len(tc.wantIPs))
520+
t.Fatalf("LookupA(%s) returned %d addrs, but want %d", tc.hostname, len(res.Final), len(tc.wantIPs))
521521
}
522522
for i := range len(tc.wantIPs) {
523523
if !res.Final[i].AAAA.Equal(tc.wantIPs[i]) {

observer/probers/tls/tls_conf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (c TLSConf) MakeProber(collectors map[string]prometheus.Collector) (probers
135135

136136
// Instrument constructs any `prometheus.Collector` objects the `TLSProbe` will
137137
// need to report its own metrics. A map is returned containing the constructed
138-
// objects, indexed by the name of the Promtheus metric. If no objects were
138+
// objects, indexed by the name of the Prometheus metric. If no objects were
139139
// constructed, nil is returned.
140140
func (c TLSConf) Instrument() map[string]prometheus.Collector {
141141
notBefore := prometheus.Collector(prometheus.NewGaugeVec(

test/integration/revocation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ func TestBadKeyRevokerByAccount(t *testing.T) {
669669
t.Logf("Generated to-be-revoked cert with serial %x", toBeRevoked.certs[0].SerialNumber)
670670

671671
// Issue two more certs, one from the original account and one from an
672-
// unrelated account. We don't use separatze revoker/revokee accounts here
672+
// unrelated account. We don't use separate revoker/revokee accounts here
673673
// because you can only revoke *your own* certs when signing the request with
674674
// your account key.
675675
bundles := []*issuanceResult{}

test/load-generator/acme/challenge_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ func TestNewChallengeStrategy(t *testing.T) {
1717
}{
1818
{
1919
Name: "unknown name",
20-
InputName: "hyper-quauntum-math-mesh-challenge",
21-
ExpectedError: `ChallengeStrategy "HYPER-QUAUNTUM-MATH-MESH-CHALLENGE" unknown`,
20+
InputName: "hyper-quantum-math-mesh-challenge",
21+
ExpectedError: `ChallengeStrategy "HYPER-QUANTUM-MATH-MESH-CHALLENGE" unknown`,
2222
},
2323
{
2424
Name: "known name, HTTP-01",

tools/crldps/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func main() {
8989
crldp := crldpString(issuer, *numShards+1)
9090
resp, err := client.Get(crldp)
9191
if err != nil {
92-
log.Fatalf("Error checking for existence of higher-nunbered shard %q: %s", crldp, err)
92+
log.Fatalf("Error checking for existence of higher-numbered shard %q: %s", crldp, err)
9393
} else if resp.StatusCode != http.StatusNotFound {
9494
log.Fatalf("Was unexpectedly able to fetch higher-numbered shard %q; please verify that the -shards flag is correct", crldp)
9595
}

va/va.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func initMetrics(stats prometheus.Registerer) *vaMetrics {
123123
}, []string{"operation", "perspective", "challenge_type", "problem_type", "result"})
124124
prospectiveRemoteCAACheckFailures := promauto.With(stats).NewCounter(prometheus.CounterOpts{
125125
Name: "prospective_remote_caa_check_failures",
126-
Help: "Number of CAA rechecks that would have failed due to remote VAs returning failure if consesus were enforced",
126+
Help: "Number of CAA rechecks that would have failed due to remote VAs returning failure if consensus were enforced",
127127
})
128128
tlsALPNOIDCounter := promauto.With(stats).NewCounterVec(prometheus.CounterOpts{
129129
Name: "tls_alpn_oid_usage",

wfe2/wfe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ func (wfe *WebFrontEndImpl) updateAccount(ctx context.Context, requestBody []byt
14661466
// deactivate the provided authorization. If an error occurs it is written to
14671467
// the response writer. Important: `deactivateAuthorization` does not check that
14681468
// the requester is authorized to deactivate the given authorization. It is
1469-
// assumed that this check is performed prior to calling deactivateAuthorzation.
1469+
// assumed that this check is performed prior to calling deactivateAuthorization.
14701470
func (wfe *WebFrontEndImpl) deactivateAuthorization(
14711471
ctx context.Context,
14721472
authzPB *corepb.Authorization,

0 commit comments

Comments
 (0)