diff options
Diffstat (limited to 'src/errors/wrap.go')
| -rw-r--r-- | src/errors/wrap.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/errors/wrap.go b/src/errors/wrap.go index a719655b10..1f54b66e5c 100644 --- a/src/errors/wrap.go +++ b/src/errors/wrap.go @@ -12,7 +12,8 @@ import ( // type contains an Unwrap method returning error. // Otherwise, Unwrap returns nil. // -// Unwrap returns nil if the Unwrap method returns []error. +// Unwrap only calls a method of the form "Unwrap() error". +// In particular Unwrap does not unwrap errors returned by [Join]. func Unwrap(err error) error { u, ok := err.(interface { Unwrap() error |
