Commit 24b43013 authored by Damien Neil's avatar Damien Neil

errors: remove mention of Wrapper interface

The Wrapper type no longer exists.

Change-Id: I21051f26c6722a957295819f2f385f2bbd0db355
Reviewed-on: https://go-review.googlesource.com/c/go/+/177618Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 41329c07
...@@ -8,8 +8,9 @@ import ( ...@@ -8,8 +8,9 @@ import (
"internal/reflectlite" "internal/reflectlite"
) )
// Unwrap returns the result of calling the Unwrap method on err, if err // Unwrap returns the result of calling the Unwrap method on err, if err's
// implements Wrapper. Otherwise, Unwrap returns nil. // type contains an Unwrap method returning error.
// Otherwise, Unwrap returns nil.
func Unwrap(err error) error { func Unwrap(err error) error {
u, ok := err.(interface { u, ok := err.(interface {
Unwrap() error Unwrap() error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment