From: Yann Salaün <1910607+yansal@users.noreply.github.com> Date: Mon, 9 Mar 2020 16:57:08 +0000 (+0000) Subject: errors: fix typo in As documentation X-Git-Tag: go1.15beta1~920 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=43c6ada84c6ef47e3b61646d2f2e7f6b7264929d;p=gostls13.git 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 --- 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.