From 72ea563e1e96fc53a7ca7b091a47e96c9e7bd5f5 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Fri, 11 Nov 2016 08:39:33 -0800 Subject: [PATCH] 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/33138 Reviewed-by: Brad Fitzpatrick --- handshake_client.go | 2 +- handshake_client_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handshake_client.go b/handshake_client.go index 89bdd59..6eda18d 100644 --- a/handshake_client.go +++ b/handshake_client.go @@ -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. diff --git a/handshake_client_test.go b/handshake_client_test.go index 69ac15b..5851f89 100644 --- a/handshake_client_test.go +++ b/handshake_client_test.go @@ -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) } }()