1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math.big: fix documentation for mod_inverse (#18494)

This commit is contained in:
phoebe 2023-06-20 13:31:04 +02:00 committed by GitHub
parent c657384f72
commit 4485f1ca1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]