Skip to content

Commit

Permalink
errors: fix typo in TODO comment
Browse files Browse the repository at this point in the history
Fixes #34846
Change-Id: I24b3e65fc96ec85b2821480e9396c9d1663611c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/200678
Run-TryBot: Johan Brandhorst <johan.brandhorst@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Johan Brandhorst <johan.brandhorst@gmail.com>
  • Loading branch information
davidsbond authored and johanbrandhorst committed Oct 11, 2019
1 parent d189bdd commit b421b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors/wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func Is(err, target error) bool {
if x, ok := err.(interface{ Is(error) bool }); ok && x.Is(target) {
return true
}
// TODO: consider supporing target.Is(err). This would allow
// TODO: consider supporting target.Is(err). This would allow
// user-definable predicates, but also may allow for coping with sloppy
// APIs, thereby making it easier to get away with them.
if err = Unwrap(err); err == nil {
Expand Down

0 comments on commit b421b85

Please sign in to comment.