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) } }()