Skip to content

Commit b421b85

Browse files
davidsbondjohanbrandhorst
authored andcommitted
errors: fix typo in TODO comment
Fixes #34846 Change-Id: I24b3e65fc96ec85b2821480e9396c9d1663611c4 Reviewed-on: https://go-review.googlesource.com/c/go/+/200678 Run-TryBot: Johan Brandhorst <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Johan Brandhorst <[email protected]>
1 parent d189bdd commit b421b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/errors/wrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func Is(err, target error) bool {
4949
if x, ok := err.(interface{ Is(error) bool }); ok && x.Is(target) {
5050
return true
5151
}
52-
// TODO: consider supporing target.Is(err). This would allow
52+
// TODO: consider supporting target.Is(err). This would allow
5353
// user-definable predicates, but also may allow for coping with sloppy
5454
// APIs, thereby making it easier to get away with them.
5555
if err = Unwrap(err); err == nil {

0 commit comments

Comments
 (0)