1
0
mirror of https://github.com/golang/go synced 2024-09-29 17:24:34 -06:00

errors: fix typo in As documentation

This commit is contained in:
Yann Salaün 2020-03-09 17:32:02 +01:00 committed by GitHub
parent 7dbf12573f
commit 577a6fec33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.