Skip to content

Commit

Permalink
math.big: fix documentation for mod_inverse (#18494)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoreverpheebs committed Jun 20, 2023
1 parent c657384 commit 4485f1c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vlib/math/big/integer.v
Expand Up @@ -1008,7 +1008,6 @@ fn gcd_binary(x Integer, y Integer) Integer {

// mod_inverse calculates the multiplicative inverse of the integer `a` in the ring `ℤ/nℤ`.
// Therefore, the return value `x` satisfies `a * x == 1 (mod m)`.
// -----
// An error is returned if `a` and `n` are not relatively prime, i.e. `gcd(a, n) != 1` or
// if n <= 1
[inline]
Expand Down

0 comments on commit 4485f1c

Please sign in to comment.