From 2793bc2be40b24d9add2adaa08cd9ce9c0b18f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Pr=C3=B6=C3=9Fdorf?= Date: Fri, 18 Jan 2019 09:31:56 +0200 Subject: [PATCH] Fix documentation of default values in validation --- src/validation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validation.rs b/src/validation.rs index 3684823..a451390 100644 --- a/src/validation.rs +++ b/src/validation.rs @@ -41,13 +41,13 @@ pub struct Validation { /// /// It will return an error if the time in the `iat` field is in the future. /// - /// Defaults to `true`. + /// Defaults to `false`. pub validate_iat: bool, /// Whether to validate the `nbf` field. /// /// It will return an error if the current timestamp is before the time in the `nbf` field. /// - /// Defaults to `true`. + /// Defaults to `false`. pub validate_nbf: bool, /// If it contains a value, the validation will check that the `aud` field is the same as the /// one provided and will error otherwise.