Skip to content

Commit

Permalink
Update display style of n in invmod(n) dosctring. (#55539)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Aug 20, 2024
1 parent a2b1b4e commit 7d341ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/intfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ n * invmod(n) == 1
(n % T) * invmod(n, T) == 1
```
Note that `*` here is modular multiplication in the integer ring, `T`. This will
throw an error if ``n`` is even, because then it is not relatively prime with `2^N`
throw an error if `n` is even, because then it is not relatively prime with `2^N`
and thus has no such inverse.
Specifying the modulus implied by an integer type as an explicit value is often
Expand Down

0 comments on commit 7d341ea

Please sign in to comment.