Skip to content

Commit cbeffe9

Browse files
committed
Fixed a bunch of typos
1 parent 2b15b6c commit cbeffe9

File tree

19 files changed

+33
-33
lines changed

19 files changed

+33
-33
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contributing to Boulder
22

33
> **Note:** We are currently in a *General Availability* only merge window, meaning
4-
> we will only be reviewing & merging patches which close a issue tagged with the *General
4+
> we will only be reviewing & merging patches which close an issue tagged with the *General
55
> Availability* milestone.
66
77
Thanks for helping us build Boulder, if you haven't already had a chance to look

DESIGN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Notes:
214214

215215
* 7-8: WFE does the following:
216216
* Create a URL from the certificate's serial number
217-
* Return the certificate with it's URL
217+
* Return the certificate with its URL
218218

219219

220220
## Revoke Certificate
@@ -244,4 +244,4 @@ Notes:
244244
* Log the success or failure of the revocation
245245

246246
* 5-6: WFE does the following:
247-
* Return an indication of the sucess or failure of the revocation
247+
* Return an indication of the success or failure of the revocation

cmd/admin-revoker/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func main() {
163163
// 1: serial, 2: reasonCode (3: deny flag)
164164
serial := c.Args().First()
165165
reasonCode, err := strconv.Atoi(c.Args().Get(1))
166-
cmd.FailOnError(err, "Reason code argument must be a integer")
166+
cmd.FailOnError(err, "Reason code argument must be an integer")
167167
deny := c.GlobalBool("deny")
168168

169169
cac, auditlogger, dbMap, _ := setupContext(c)
@@ -190,9 +190,9 @@ func main() {
190190
Action: func(c *cli.Context) {
191191
// 1: registration ID, 2: reasonCode (3: deny flag)
192192
regID, err := strconv.ParseInt(c.Args().First(), 10, 64)
193-
cmd.FailOnError(err, "Registration ID argument must be a integer")
193+
cmd.FailOnError(err, "Registration ID argument must be an integer")
194194
reasonCode, err := strconv.Atoi(c.Args().Get(1))
195-
cmd.FailOnError(err, "Reason code argument must be a integer")
195+
cmd.FailOnError(err, "Reason code argument must be an integer")
196196
deny := c.GlobalBool("deny")
197197

198198
cac, auditlogger, dbMap, sac := setupContext(c)

cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ type Config struct {
131131

132132
Path string
133133
ListenAddress string
134-
// MaxAge is the max-age to set in the Cache-Controler response
134+
// MaxAge is the max-age to set in the Cache-Control response
135135
// header. It is a time.Duration formatted string.
136136
MaxAge ConfigDuration
137137

cmd/expiration-mailer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (m *mailer) updateCertStatus(serial string) error {
110110

111111
err = tx.Commit()
112112
if err != nil {
113-
m.log.Err(fmt.Sprintf("Error commiting transaction for certificate %s: %s", serial, err))
113+
m.log.Err(fmt.Sprintf("Error committing transaction for certificate %s: %s", serial, err))
114114
tx.Rollback()
115115
return err
116116
}

cmd/shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (as *AppShell) Run() {
157157
FailOnError(err, "Failed to run application")
158158
}
159159

160-
// StatsAndLogging constructs a Statter and and AuditLogger based on its config
160+
// StatsAndLogging constructs a Statter and an AuditLogger based on its config
161161
// parameters, and return them both. Crashes if any setup fails.
162162
// Also sets the constructed AuditLogger as the default logger.
163163
func StatsAndLogging(statConf StatsdConfig, logConf SyslogConfig) (statsd.Statter, *blog.AuditLogger) {

core/objects.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ type Challenge struct {
294294
// The status of this challenge
295295
Status AcmeStatus `json:"status,omitempty"`
296296

297-
// Contains the error that occured during challenge validation, if any
297+
// Contains the error that occurred during challenge validation, if any
298298
Error *probs.ProblemDetails `json:"error,omitempty"`
299299

300300
// If successful, the time at which this challenge
@@ -487,7 +487,7 @@ type Certificate struct {
487487
}
488488

489489
// IdentifierData holds information about what certificates are known for a
490-
// given identifier. This is used to present Proof of Posession challenges in
490+
// given identifier. This is used to present Proof of Possession challenges in
491491
// the case where a certificate already exists. The DB table holding
492492
// IdentifierData rows contains information about certs issued by Boulder and
493493
// also information about certs observed from third parties.

core/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func LoadCertBundle(filename string) ([]*x509.Certificate, error) {
460460
return bundle, nil
461461
}
462462

463-
// LoadCert loads a PEM certificate specified by filename or returns a error
463+
// LoadCert loads a PEM certificate specified by filename or returns an error
464464
func LoadCert(filename string) (cert *x509.Certificate, err error) {
465465
certPEM, err := ioutil.ReadFile(filename)
466466
if err != nil {

log/audit-logger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func SetAuditLogger(logger *AuditLogger) (err error) {
119119

120120
// GetAuditLogger obtains the singleton audit logger. If SetAuditLogger
121121
// has not been called first, this method initializes with basic defaults.
122-
// The basic defaults cannot error, and subequent access to an already-set
122+
// The basic defaults cannot error, and subsequent access to an already-set
123123
// AuditLogger also cannot error, so this method is error-safe.
124124
func GetAuditLogger() *AuditLogger {
125125
_Singleton.once.Do(func() {
@@ -271,7 +271,7 @@ func (log *AuditLogger) AuditObject(msg string, obj interface{}) (err error) {
271271
return log.auditAtLevel(syslog.LOG_NOTICE, formattedEvent)
272272
}
273273

274-
// InfoObject sends a INFO-severity JSON-serialized object message.
274+
// InfoObject sends an INFO-severity JSON-serialized object message.
275275
func (log *AuditLogger) InfoObject(msg string, obj interface{}) (err error) {
276276
formattedEvent, logErr := log.formatObjectMessage(msg, obj)
277277
if logErr != nil {

mocks/mocks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (mock *DNSResolver) LookupTXT(hostname string) ([]string, error) {
4646
return []string{"hostname"}, nil
4747
}
4848

49-
// TimeoutError returns a a net.OpError for which Timeout() returns true.
49+
// TimeoutError returns a net.OpError for which Timeout() returns true.
5050
func TimeoutError() *net.OpError {
5151
return &net.OpError{
5252
Err: os.NewSyscallError("ugh timeout", timeoutError{}),

0 commit comments

Comments
 (0)