Commit 8eb88b0d authored by Kevin Burke's avatar Kevin Burke Committed by Brad Fitzpatrick

cmd/gofmt, crypto/tls: fix typos

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/33138Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 8f215d8c
...@@ -32,8 +32,8 @@ The flags are: ...@@ -32,8 +32,8 @@ The flags are:
-w -w
Do not print reformatted sources to standard output. Do not print reformatted sources to standard output.
If a file's formatting is different from gofmt's, overwrite it If a file's formatting is different from gofmt's, overwrite it
with gofmt's version. If an error occured during overwriting, with gofmt's version. If an error occurred during overwriting,
the orginal file is restored from an automatic backup. the original file is restored from an automatic backup.
Debugging support: Debugging support:
-cpuprofile filename -cpuprofile filename
......
...@@ -115,7 +115,7 @@ NextCipherSuite: ...@@ -115,7 +115,7 @@ NextCipherSuite:
// Session resumption is not allowed if renegotiating because // Session resumption is not allowed if renegotiating because
// renegotiation is primarily used to allow a client to send a client // 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 { if sessionCache != nil && c.handshakes == 0 {
// Try to resume a previously negotiated TLS session, if // Try to resume a previously negotiated TLS session, if
// available. // available.
......
...@@ -359,7 +359,7 @@ func (test *clientTest) run(t *testing.T, write bool) { ...@@ -359,7 +359,7 @@ func (test *clientTest) run(t *testing.T, write bool) {
} }
if expected := i + 1; client.handshakes != expected { 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)
} }
}() }()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment