File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ package errors
10
10
// The error formats as the concatenation of the strings obtained
11
11
// by calling the Error method of each element of errs, with a newline
12
12
// between each string.
13
+ //
14
+ // A non-nil error returned by Join implements the Unwrap() []error method.
13
15
func Join (errs ... error ) error {
14
16
n := 0
15
17
for _ , err := range errs {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
// type contains an Unwrap method returning error.
13
13
// Otherwise, Unwrap returns nil.
14
14
//
15
- // Unwrap returns nil if the Unwrap method returns []error.
15
+ // Unwrap returns nil if the signature of err.Unwrap returns []error.
16
16
func Unwrap (err error ) error {
17
17
u , ok := err .(interface {
18
18
Unwrap () error
You can’t perform that action at this time.
0 commit comments