Skip to content

Commit

Permalink
remove references to ErrorGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Weber committed Jan 21, 2025
1 parent e4345dc commit 852fb32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errwrap/go_123.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

// UnwrapGroups will unwrap errors visiting each one.
// Any ErrorGroup is expanded and traversed
// An error that defines Unwrap() []error is expanded and traversed
// This is a depth-first traversal, doing the unwrap first and the expansion second.
// This can be used for functionality similar to errors.As but it also expands error groups.
func UnwrapGroups(err error) iter.Seq[error] {
Expand Down
2 changes: 1 addition & 1 deletion errwrap/wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func writeString(w io.Writer, s string) {
// UnwrapGroups is now preferred for those using Go version >= 1.23.
// Note that WalkDeep uses the opposite convention for boolean return values compared to golang iterators.
// WalkDeep does a depth-first traversal of all errors.
// Any ErrorGroup is traversed (after first unwrapping deeply).
// An error that defines Unwrap() []error is expanded and traversed
// The visitor function can return true to end the traversal early
// If iteration is ended early, WalkDeep will return true, otherwise false.
func WalkDeep(err error, visitor func(err error) bool) bool {
Expand Down

0 comments on commit 852fb32

Please sign in to comment.