From: Benjamin Peterson Date: Wed, 6 Nov 2019 17:54:32 +0000 (+0000) Subject: os: fix reference to nonexistent errors.Wrapper X-Git-Tag: go1.14beta1~370 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e3a7d6c29757fd81c753b0e6267936c839e972c3;p=gostls13.git os: fix reference to nonexistent errors.Wrapper Change-Id: I857d39486cbddbbee0c00fd45eb77f21488f4806 GitHub-Last-Rev: 1b500183cfebadffb4c183e56850bfb794a11703 GitHub-Pull-Request: golang/go#35399 Reviewed-on: https://go-review.googlesource.com/c/go/+/205602 Reviewed-by: Jonathan Amsterdam --- diff --git a/src/os/error.go b/src/os/error.go index 0e8e2d47f8..26bfe4cab5 100644 --- a/src/os/error.go +++ b/src/os/error.go @@ -110,7 +110,7 @@ func IsTimeout(err error) bool { func underlyingErrorIs(err, target error) bool { // Note that this function is not errors.Is: // underlyingError only unwraps the specific error-wrapping types - // that it historically did, not all errors.Wrapper implementations. + // that it historically did, not all errors implementing Unwrap(). err = underlyingError(err) if err == target { return true