]> Cypherpunks repositories - gostls13.git/commitdiff
errors: remove mention of Wrapper interface
authorDamien Neil <dneil@google.com>
Thu, 16 May 2019 16:45:56 +0000 (09:45 -0700)
committerDamien Neil <dneil@google.com>
Wed, 22 May 2019 02:10:36 +0000 (02:10 +0000)
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>
src/errors/wrap.go

index 62332b1a8897bff56bcceb9f328c717c6359c9c7..760a08a4ef2ba3e932a9af0ff4b2fd3e1bc7e601 100644 (file)
@@ -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