mirror of
https://github.com/golang/go
synced 2024-11-17 12:34:46 -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:
parent
7dbf12573f
commit
43c6ada84c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user