]> Cypherpunks.ru repositories - gostls13.git/commitdiff
errors: fix typo in As documentation
authorYann Salaün <1910607+yansal@users.noreply.github.com>
Mon, 9 Mar 2020 16:57:08 +0000 (16:57 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 9 Mar 2020 18:06:25 +0000 (18:06 +0000)
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>
src/errors/wrap.go

index 272d056b31846d20ab74a11d301a37101728ced8..b82ca34b46faf5c2c98becae87dbe01658527293 100644 (file)
@@ -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
-// 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.