Fix the upper bound in the description of mods (#525)

This commit is contained in:
Marek 2023-05-29 23:24:45 +02:00 committed by GitHub
parent 267961b7ee
commit 6c2233bc45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -877,7 +877,7 @@ impl Scalar {
///
/// Here \\( \bar x = x \operatorname{mods} 2^w \\) means the
/// \\( \bar x \\) with \\( \bar x \equiv x \pmod{2^w} \\) and
/// \\( -2^{w-1} \leq \bar x < 2^w \\).
/// \\( -2^{w-1} \leq \bar x < 2^{w-1} \\).
///
/// We implement this by scanning across the bits of \\(k\\) from
/// least-significant bit to most-significant-bit.