aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2019-05-16 09:45:56 -0700
committerDamien Neil <dneil@google.com>2019-05-22 02:10:36 +0000
commit24b43013a12ed8bab9adcce5b8265b1fb87ff506 (patch)
tree0674f6fb37670a2316cdab3559ed49b7db279f4b /src/errors
parent41329c07f9a4dbbd041c8ee116d7876571c846ee (diff)
downloadgo-24b43013a12ed8bab9adcce5b8265b1fb87ff506.tar.gz
go-24b43013a12ed8bab9adcce5b8265b1fb87ff506.zip
errors: remove mention of Wrapper interface
The Wrapper type no longer exists. Change-Id: I21051f26c6722a957295819f2f385f2bbd0db355 Reviewed-on: https://go-review.googlesource.com/c/go/+/177618 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/wrap.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/errors/wrap.go b/src/errors/wrap.go
index 62332b1a88..760a08a4ef 100644
--- a/src/errors/wrap.go
+++ b/src/errors/wrap.go
@@ -8,8 +8,9 @@ import (
"internal/reflectlite"
)
-// Unwrap returns the result of calling the Unwrap method on err, if err
-// implements Wrapper. Otherwise, Unwrap returns nil.
+// Unwrap returns the result of calling the Unwrap method on err, if err's
+// type contains an Unwrap method returning error.
+// Otherwise, Unwrap returns nil.
func Unwrap(err error) error {
u, ok := err.(interface {
Unwrap() error