mirror of
https://github.com/golang/go.git
synced 2025-10-19 19:13:18 +00:00
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 <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
This commit is contained in:
parent
4afd482812
commit
9de69f6913
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ import (
|
|||
// between each string.
|
||||
//
|
||||
// A non-nil error returned by Join implements the Unwrap() []error method.
|
||||
// The errors may be inspected with [Is] and [As].
|
||||
func Join(errs ...error) error {
|
||||
n := 0
|
||||
for _, err := range errs {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue