diff options
author | Jacob Walker <jacobwalker0814@gmail.com> | 2019-05-02 03:45:08 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-05-02 04:44:36 +0000 |
commit | 74b3c50eeb5d7c15dbf41524f6fa42d6d29e4cd6 (patch) | |
tree | 6dec7ac633dc38e493174eaced79729671687eb3 /src/errors | |
parent | 762953be28010644fb38ddbe4a55094751d10049 (diff) | |
download | go-74b3c50eeb5d7c15dbf41524f6fa42d6d29e4cd6.tar.gz go-74b3c50eeb5d7c15dbf41524f6fa42d6d29e4cd6.zip |
errors: fix comment referencing the Wrapper interface
The Unwrap function performs a type assertion looking for the Wrapper
interface. The method of that interface is called Unwrap but the
interface itself is called Wrapper.
Change-Id: Ie3bf296f93b773d36015bcab2a0e6585d39783c7
GitHub-Last-Rev: 32b1a0c2f8bf8f3eaebf6de252571d82313e86e0
GitHub-Pull-Request: golang/go#31794
Reviewed-on: https://go-review.googlesource.com/c/go/+/174917
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/errors')
-rw-r--r-- | src/errors/wrap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors/wrap.go b/src/errors/wrap.go index b1a15d01dd..04ddf79ba3 100644 --- a/src/errors/wrap.go +++ b/src/errors/wrap.go @@ -34,7 +34,7 @@ func (e noWrapper) FormatError(p Printer) (next error) { } // Unwrap returns the result of calling the Unwrap method on err, if err -// implements Unwrap. Otherwise, Unwrap returns nil. +// implements Wrapper. Otherwise, Unwrap returns nil. func Unwrap(err error) error { u, ok := err.(Wrapper) if !ok { |