]> Cypherpunks repositories - gostls13.git/commitdiff
errors: fix typo in TODO comment
authordavidsbond <davidsbond93@gmail.com>
Fri, 11 Oct 2019 13:12:55 +0000 (14:12 +0100)
committerJohan Brandhorst <johan.brandhorst@gmail.com>
Fri, 11 Oct 2019 13:33:01 +0000 (13:33 +0000)
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>
src/errors/wrap.go

index 688c58539691638b405d0025c640affe41379e78..272d056b31846d20ab74a11d301a37101728ced8 100644 (file)
@@ -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 {