Skip to content

Commit

Permalink
tweak document
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Jan 7, 2024
1 parent dbe38be commit cb10d2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jws/jws.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,9 @@ func (e *verifyError) As(target interface{}) bool {
// verification failure.
//
// For example, if the error happened while fetching a key
// from a datasource, that error should return false, whereas a failure to
// compute the signature for whatever reason would be a verify error
// from a datasource, feeding that error should to this function return false, whereas
// a failure to compute the signature for whatever reason would be a verification error
// and returns true.
func IsVerificationError(err error) bool {
var ve *verifyError
return errors.As(err, &ve)
Expand Down

0 comments on commit cb10d2e

Please sign in to comment.