We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c520693 commit 2e075a7Copy full SHA for 2e075a7
src/errors/join.go
@@ -10,6 +10,8 @@ package errors
10
// The error formats as the concatenation of the strings obtained
11
// by calling the Error method of each element of errs, with a newline
12
// between each string.
13
+//
14
+// A non-nil error returned by Join implements the Unwrap() []error method.
15
func Join(errs ...error) error {
16
n := 0
17
for _, err := range errs {
src/errors/wrap.go
@@ -12,7 +12,7 @@ import (
// type contains an Unwrap method returning error.
// Otherwise, Unwrap returns nil.
//
-// Unwrap returns nil if the Unwrap method returns []error.
+// Unwrap returns nil if the signature of err.Unwrap returns []error.
func Unwrap(err error) error {
u, ok := err.(interface {
18
Unwrap() error
0 commit comments