Fix function name in doc comment

This commit is contained in:
Vivien Maisonneuve 2022-02-03 08:41:25 +01:00 committed by Vincent Prouillet
parent af684c146f
commit 0ed16a34ad
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ impl Validation {
/// Which claims are required to be present for this JWT to be considered valid. /// Which claims are required to be present for this JWT to be considered valid.
/// The only values that will be considered are "exp", "nbf", "aud", "iss", "sub". /// The only values that will be considered are "exp", "nbf", "aud", "iss", "sub".
/// The simple usage is `set_required_claims(&["exp", "nbf"])`. /// The simple usage is `set_required_spec_claims(&["exp", "nbf"])`.
/// If you want to have an empty set, do not use this function - set an empty set on the struct /// If you want to have an empty set, do not use this function - set an empty set on the struct
/// param directly. /// param directly.
pub fn set_required_spec_claims<T: ToString>(&mut self, items: &[T]) { pub fn set_required_spec_claims<T: ToString>(&mut self, items: &[T]) {