Skip to content

Commit 9de69f6

Browse files
committed
errors: mention Is/As in Join docs
Fixes #74461 Change-Id: Ic1b1b2b43d59dd67f31c2388ca88650ee847ba93 Reviewed-on: https://go-review.googlesource.com/c/go/+/696737 Reviewed-by: David Chase <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Reviewed-by: Jorropo <[email protected]>
1 parent 4afd482 commit 9de69f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/errors/join.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
// between each string.
1717
//
1818
// A non-nil error returned by Join implements the Unwrap() []error method.
19+
// The errors may be inspected with [Is] and [As].
1920
func Join(errs ...error) error {
2021
n := 0
2122
for _, err := range errs {

0 commit comments

Comments
 (0)