]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: fix typo in spelling of permanentError
authorLuca Spiller <luca@stackednotion.com>
Tue, 6 Oct 2020 08:12:45 +0000 (08:12 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Tue, 6 Oct 2020 08:26:49 +0000 (08:26 +0000)
Change-Id: I819c121ff388460ec348af773ef94b44416a2ea9
GitHub-Last-Rev: 98dd8fb25cecb73e88d107e0a35e3e63a53dfd09
GitHub-Pull-Request: golang/go#41785
Reviewed-on: https://go-review.googlesource.com/c/go/+/259517
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>

src/crypto/tls/conn.go

index 5dff76c9889a4085b0a5fa72d4c83941cdc51302..f1d4cb926c0ff1b4b1ed0a5a7f8946f210515cf0 100644 (file)
@@ -168,18 +168,18 @@ type halfConn struct {
        trafficSecret []byte // current TLS 1.3 traffic secret
 }
 
-type permamentError struct {
+type permanentError struct {
        err net.Error
 }
 
-func (e *permamentError) Error() string   { return e.err.Error() }
-func (e *permamentError) Unwrap() error   { return e.err }
-func (e *permamentError) Timeout() bool   { return e.err.Timeout() }
-func (e *permamentError) Temporary() bool { return false }
+func (e *permanentError) Error() string   { return e.err.Error() }
+func (e *permanentError) Unwrap() error   { return e.err }
+func (e *permanentError) Timeout() bool   { return e.err.Timeout() }
+func (e *permanentError) Temporary() bool { return false }
 
 func (hc *halfConn) setErrorLocked(err error) error {
        if e, ok := err.(net.Error); ok {
-               hc.err = &permamentError{err: e}
+               hc.err = &permanentError{err: e}
        } else {
                hc.err = err
        }