Skip to content

Commit

Permalink
Fix failing doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang committed Apr 8, 2022
1 parent d5089ca commit e84bd34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ impl Authenticator {
/// Validate a reply to a challenge.
///
/// ```
/// use uuid:Uuid;
/// use crate::auth::Authenticator;
/// use bore_cli::auth::Authenticator;
/// use uuid::Uuid;
///
/// let auth = Authenticator::new("secret");
/// let challenge = Uuid::new_v4();
///
/// assert!(auth.validate(&challenge, auth.answer(&challenge)));
/// assert!(auth.validate(&challenge, &auth.answer(&challenge)));
/// assert!(!auth.validate(&challenge, "wrong answer"));
/// ```
pub fn validate(&self, challenge: &Uuid, tag: &str) -> bool {
Expand Down

0 comments on commit e84bd34

Please sign in to comment.