Skip to content

Commit

Permalink
Fix typo: Mongtgomery -> Montgomery
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Aug 16, 2024
1 parent d114863 commit 6df8d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modular/div_by_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub(crate) const fn div_by_2<const LIMBS: usize>(
// Note that this also works if `a` is a Montgomery representation modulo `modulus`
// of some integer `x`.
// If `b + b = a mod modulus` it means that `y + y = x mod modulus` where `y` is the integer
// whose Mongtgomery representation is `b`.
// whose Montgomery representation is `b`.

let (half, is_odd) = a.shr1_with_carry();
let half_modulus = modulus.0.shr1();
Expand Down

0 comments on commit 6df8d89

Please sign in to comment.