From c5f16d4e40d0a2d9c2e32a866129d6a40535f57d Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Mon, 19 Dec 2016 20:53:45 -0800 Subject: [PATCH] crypto/x509: fix spelling/grammar in comments Also tweak one of the comment lines to fit in 80 characters. Change-Id: I9c6d2028c29318ba9264486590056cb1ffc8219e Reviewed-on: https://go-review.googlesource.com/34655 Reviewed-by: Brad Fitzpatrick --- src/crypto/x509/root_darwin.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/crypto/x509/root_darwin.go b/src/crypto/x509/root_darwin.go index acdf43c94a..66cdb5ea26 100644 --- a/src/crypto/x509/root_darwin.go +++ b/src/crypto/x509/root_darwin.go @@ -83,7 +83,7 @@ func execSecurityRoots() (*CertPool, error) { // to the "if hasPolicy" check below, though, we will rarely // (or never) call verify-cert on stock macOS systems, though. // The hope is that we only call verify-cert when the user has - // tweaked their trust poliy. These 4 goroutines are only + // tweaked their trust policy. These 4 goroutines are only // defensive in the pathological case of many trust edits. for i := 0; i < 4; i++ { wg.Add(1) @@ -195,9 +195,9 @@ func getCertsWithTrustPolicy() (map[string]bool, error) { // `security trust-settings-export` command // fails with: // exit status 1, SecTrustSettingsCreateExternalRepresentation: No Trust Settings were found. - // Rather than match on English substrings that are probably localized - // on macOS, just treat interpret any failure as meaning that there are - // no trust settings. + // Rather than match on English substrings that are probably + // localized on macOS, just interpret any failure to mean that + // there are no trust settings. if debugExecDarwinRoots { println(fmt.Sprintf("crypto/x509: exec %q: %v, %s", cmd.Args, err, stderr.Bytes())) } -- 2.48.1