aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/wrap.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/errors/wrap.go b/src/errors/wrap.go
index 2ebb951f1d..e4a5ca33d5 100644
--- a/src/errors/wrap.go
+++ b/src/errors/wrap.go
@@ -25,6 +25,7 @@ func Unwrap(err error) error {
}
// Is reports whether any error in err's tree matches target.
+// The target must be comparable.
//
// The tree consists of err itself, followed by the errors obtained by repeatedly
// calling its Unwrap() error or Unwrap() []error method. When err wraps multiple