1
0
mirror of https://github.com/golang/go synced 2024-11-17 10:44:43 -07:00

errors: fix typo in As documentation

Change-Id: Ia26b4457aa0780171a636df93f8d210de0278ec5
GitHub-Last-Rev: 577a6fec33
GitHub-Pull-Request: golang/go#37760
Reviewed-on: https://go-review.googlesource.com/c/go/+/222621
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Yann Salaün 2020-03-09 16:57:08 +00:00 committed by Ian Lance Taylor
parent 7dbf12573f
commit 43c6ada84c

View 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
// 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.