Skip to content

Commit a7a9fff

Browse files
Minor documentation fixes (#671)
1 parent 35e78b2 commit a7a9fff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

curve25519-dalek/src/edwards.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
//! ## Equality Testing
2020
//!
2121
//! The `EdwardsPoint` struct implements the [`subtle::ConstantTimeEq`]
22-
//! trait for constant-time equality checking, and the Rust `Eq` trait
23-
//! for variable-time equality checking.
22+
//! trait for constant-time equality checking, and also uses this to
23+
//! ensure `Eq` equality checking runs in constant time.
2424
//!
2525
//! ## Cofactor-related functions
2626
//!
@@ -438,7 +438,7 @@ impl Zeroize for CompressedEdwardsY {
438438

439439
#[cfg(feature = "zeroize")]
440440
impl Zeroize for EdwardsPoint {
441-
/// Reset this `CompressedEdwardsPoint` to the identity element.
441+
/// Reset this `EdwardsPoint` to the identity element.
442442
fn zeroize(&mut self) {
443443
self.X.zeroize();
444444
self.Y = FieldElement::ONE;

curve25519-dalek/src/ristretto.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
//! coordinates without requiring an inversion, so it is much faster.
7777
//!
7878
//! The `RistrettoPoint` struct implements the
79-
//! `subtle::ConstantTimeEq` trait for constant-time equality
80-
//! checking, and the Rust `Eq` trait for variable-time equality
81-
//! checking.
79+
//! [`subtle::ConstantTimeEq`] trait for constant-time equality
80+
//! checking, and also uses this to ensure `Eq` equality checking
81+
//! runs in constant time.
8282
//!
8383
//! ## Scalars
8484
//!

0 commit comments

Comments
 (0)