From 94fef12259f117fc419377c0e752bf12bdd49029 Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Mon, 19 Jul 2021 19:37:11 +0200 Subject: [PATCH] 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. --- src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index 1f6c17f..c6809ed 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -56,7 +56,7 @@ pub enum ErrorKind { InvalidIssuer, /// When a token’s `aud` claim does not match one of the expected audience values InvalidAudience, - /// When a token’s `aud` claim does not match one of the expected audience values + /// When a token’s `sub` claim does not match one of the expected audience values InvalidSubject, /// When a token’s nbf claim represents a time in the future ImmatureSignature,