diff options
author | Yann Salaün <1910607+yansal@users.noreply.github.com> | 2020-03-09 16:57:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-03-09 18:06:25 +0000 |
commit | 43c6ada84c6ef47e3b61646d2f2e7f6b7264929d (patch) | |
tree | 855426b1151dbb451c83913def24e2489c403b12 /src/errors | |
parent | 7dbf12573f793df84802f0a65b03e8e6d4186a5c (diff) | |
download | go-43c6ada84c6ef47e3b61646d2f2e7f6b7264929d.tar.gz go-43c6ada84c6ef47e3b61646d2f2e7f6b7264929d.zip |
errors: fix typo in As documentation
Change-Id: Ia26b4457aa0780171a636df93f8d210de0278ec5
GitHub-Last-Rev: 577a6fec336010cb56a547bf2d6304fd3e0cb257
GitHub-Pull-Request: golang/go#37760
Reviewed-on: https://go-review.googlesource.com/c/go/+/222621
Reviewed-by: Ian Lance Taylor <iant@golang.org>
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 272d056b31..b82ca34b46 100644 --- a/src/errors/wrap.go +++ b/src/errors/wrap.go @@ -70,7 +70,7 @@ func Is(err, target error) bool { // setting target. // // An error type might provide an As method so it can be treated as if it were a -// a different error type. +// different error type. // // As panics if target is not a non-nil pointer to either a type that implements // error, or to any interface type. |