aboutsummaryrefslogtreecommitdiff
path: root/src/errors/wrap.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors/wrap.go')
-rw-r--r--src/errors/wrap.go2
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 {