From b421b858417abae1defa75cc2d008cfae2a18174 Mon Sep 17 00:00:00 2001 From: davidsbond Date: Fri, 11 Oct 2019 14:12:55 +0100 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Johan Brandhorst --- src/errors/wrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.48.1