]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gofmt, crypto/tls: fix typos
authorKevin Burke <kev@inburke.com>
Fri, 11 Nov 2016 16:39:33 +0000 (08:39 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 11 Nov 2016 16:42:40 +0000 (16:42 +0000)
Fix spelling of "original" and "occurred" in new gofmt docs. The same
misspelling of "occurred" was also present in crypto/tls, I fixed it there as
well.

Change-Id: I67b4f1c09bd1a2eb1844207d5514f08a9f525ff9
Reviewed-on: https://go-review.googlesource.com/33138
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/gofmt/doc.go
src/crypto/tls/handshake_client.go
src/crypto/tls/handshake_client_test.go

index 805e5fbdcfd8637bde81128d08aa0f035442d978..8b22f03f653c3d2763871a06dcd7f987e2ead519 100644 (file)
@@ -32,8 +32,8 @@ The flags are:
        -w
                Do not print reformatted sources to standard output.
                If a file's formatting is different from gofmt's, overwrite it
-               with gofmt's version. If an error occured during overwriting,
-               the orginal file is restored from an automatic backup.
+               with gofmt's version. If an error occurred during overwriting,
+               the original file is restored from an automatic backup.
 
 Debugging support:
        -cpuprofile filename
index 89bdd5944dc76811883d8fd7420ab7a282d7e793..6eda18dbfce9eaaf86dd6b0c8d9a0bede2e17106 100644 (file)
@@ -115,7 +115,7 @@ NextCipherSuite:
 
        // Session resumption is not allowed if renegotiating because
        // renegotiation is primarily used to allow a client to send a client
-       // certificate, which would be skipped if session resumption occured.
+       // certificate, which would be skipped if session resumption occurred.
        if sessionCache != nil && c.handshakes == 0 {
                // Try to resume a previously negotiated TLS session, if
                // available.
index 69ac15ba5f15b286bec94646fea314dc8f793dfd..5851f897f96932502968e0881e778963447aaf13 100644 (file)
@@ -359,7 +359,7 @@ func (test *clientTest) run(t *testing.T, write bool) {
                                }
 
                                if expected := i + 1; client.handshakes != expected {
-                                       t.Errorf("client should have recorded %d handshakes, but believes that %d have occured", expected, client.handshakes)
+                                       t.Errorf("client should have recorded %d handshakes, but believes that %d have occurred", expected, client.handshakes)
                                }
                        }()