Skip to content

Commit 30b6398

Browse files
committed
fix some of the documentation references
1 parent e10a2b1 commit 30b6398

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/hotp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct HOTP {
2222
/// The secret key used in the HMAC process.
2323
///
2424
/// Often given as a Base32 key, which can be conveniently initialize using
25-
/// the [`HOTP::new_from_base32`] initializers
25+
/// the [`HOTP::from_base32`] initializers
2626
secret: Vec<u8>,
2727
}
2828

@@ -61,7 +61,7 @@ impl HOTP {
6161
}
6262
}
6363

64-
/// All otp generation methods for the [`TOTP`] struct.
64+
/// All otp generation methods for the [`HOTP`] struct.
6565
6666
impl HOTP {
6767
/// Generates and returns the HOTP value

src/totp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct TOTP {
2121
/// The secret key used in the HMAC process.
2222
///
2323
/// Often given as a Base32 key, which can be conveniently initialize using
24-
/// the [`TOTP::new_from_base32`] or [`TOTP::new_from_base32_with_digest`]
24+
/// the [`TOTP::from_base32`] or [`TOTP::from_base32_with_digest`]
2525
/// initializers.
2626
secret: Vec<u8>,
2727

src/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ use sha2::{Sha256, Sha512};
1111
///
1212
/// SHA1 is still primarily used, and some other authenticator applications
1313
/// may not support other digest algorithms.
14+
///
15+
/// [RFC6238]: https://datatracker.ietf.org/doc/html/rfc6238
1416
1517
#[derive(Debug, Copy, Clone, Hash)]
1618
pub enum MacDigest {

0 commit comments

Comments
 (0)