diff options
author | davidsbond <davidsbond93@gmail.com> | 2019-10-11 14:12:55 +0100 |
---|---|---|
committer | Johan Brandhorst <johan.brandhorst@gmail.com> | 2019-10-11 13:33:01 +0000 |
commit | b421b858417abae1defa75cc2d008cfae2a18174 (patch) | |
tree | 452bcbb939dcf2fa1f08abe67c25e7ef23deed63 /src/errors | |
parent | d189bdd6846f1b7569d71cdcd5eeb77931f5c570 (diff) | |
download | go-b421b858417abae1defa75cc2d008cfae2a18174.tar.gz go-b421b858417abae1defa75cc2d008cfae2a18174.zip |
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 <johan.brandhorst@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Johan Brandhorst <johan.brandhorst@gmail.com>
Diffstat (limited to 'src/errors')
-rw-r--r-- | src/errors/wrap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors/wrap.go b/src/errors/wrap.go index 688c585396..272d056b31 100644 --- a/src/errors/wrap.go +++ b/src/errors/wrap.go @@ -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 { |