mirror of
https://github.com/golang/go
synced 2024-11-17 12:54:47 -07:00
errors: fix typo in As documentation
This commit is contained in:
parent
7dbf12573f
commit
577a6fec33
@ -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