]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: fix spelling/grammar in comments
authorKevin Burke <kev@inburke.com>
Tue, 20 Dec 2016 04:53:45 +0000 (20:53 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 20 Dec 2016 04:56:53 +0000 (04:56 +0000)
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 <bradfitz@golang.org>
src/crypto/x509/root_darwin.go

index acdf43c94a9c36880a56639c809fc3437e15caea..66cdb5ea261f0d2535224bbce4fa186872291f8f 100644 (file)
@@ -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()))
                        }