Docs: fix copy paste error in ErrorKind::InvalidSubject (#196)

The documentation for `ErrorKind::InvalidSubject` mentioned the `aud` claim instead of `sub`. This commit fixes it.
This commit is contained in:
Matteo Bertucci 2021-07-19 19:37:11 +02:00 committed by Vincent Prouillet
parent 3e245e3e6b
commit 94fef12259
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ pub enum ErrorKind {
InvalidIssuer,
/// When a tokens `aud` claim does not match one of the expected audience values
InvalidAudience,
/// When a tokens `aud` claim does not match one of the expected audience values
/// When a tokens `sub` claim does not match one of the expected audience values
InvalidSubject,
/// When a tokens nbf claim represents a time in the future
ImmatureSignature,