From 541b9d50ad47e36efd8fb423e938e59ff1691f68 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Thu, 19 Oct 2017 08:52:39 -0700 Subject: [PATCH] acme, acme/autocert: add missing articles Some sentences are missing the word "the" and others have it too often. Change-Id: I01a631e8f2655dea4433a73e75cbc94e0c8959c2 Reviewed-on: https://go-review.googlesource.com/71870 Reviewed-by: Brad Fitzpatrick --- acme/acme.go | 4 ++-- acme/autocert/autocert.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/acme/acme.go b/acme/acme.go index 60dbb11..fa9c4b3 100644 --- a/acme/acme.go +++ b/acme/acme.go @@ -142,7 +142,7 @@ func (c *Client) Discover(ctx context.Context) (Directory, error) { // // In the case where CA server does not provide the issued certificate in the response, // CreateCert will poll certURL using c.FetchCert, which will result in additional round-trips. -// In such scenario the caller can cancel the polling with ctx. +// In such a scenario, the caller can cancel the polling with ctx. // // CreateCert returns an error if the CA's response or chain was unreasonably large. // Callers are encouraged to parse the returned value to ensure the certificate is valid and has the expected features. @@ -257,7 +257,7 @@ func (c *Client) RevokeCert(ctx context.Context, key crypto.Signer, cert []byte, func AcceptTOS(tosURL string) bool { return true } // Register creates a new account registration by following the "new-reg" flow. -// It returns registered account. The account is not modified. +// It returns the registered account. The account is not modified. // // The registration may require the caller to agree to the CA's Terms of Service (TOS). // If so, and the account has not indicated the acceptance of the terms (see Account for details), diff --git a/acme/autocert/autocert.go b/acme/autocert/autocert.go index b101020..94edba9 100644 --- a/acme/autocert/autocert.go +++ b/acme/autocert/autocert.go @@ -371,7 +371,7 @@ func (m *Manager) createCert(ctx context.Context, domain string) (*tls.Certifica // We are the first; state is locked. // Unblock the readers when domain ownership is verified - // and the we got the cert or the process failed. + // and we got the cert or the process failed. defer state.Unlock() state.locked = false @@ -439,7 +439,7 @@ func (m *Manager) certState(domain string) (*certState, error) { return state, nil } -// authorizedCert starts domain ownership verification process and requests a new cert upon success. +// authorizedCert starts the domain ownership verification process and requests a new cert upon success. // The key argument is the certificate private key. func (m *Manager) authorizedCert(ctx context.Context, key crypto.Signer, domain string) (der [][]byte, leaf *x509.Certificate, err error) { if err := m.verify(ctx, domain); err != nil {