Fix minor typos in comments/docs.
This commit is contained in:
parent
21b0384f28
commit
d2f47cfa2d
|
@ -713,7 +713,7 @@ impl Fq {
|
|||
}
|
||||
|
||||
/// Subtracts the modulus from this element if this element is not in the
|
||||
/// field. Only used interally.
|
||||
/// field. Only used internally.
|
||||
#[inline(always)]
|
||||
fn reduce(&mut self) {
|
||||
if !self.is_valid() {
|
||||
|
|
|
@ -488,7 +488,7 @@ impl Fr {
|
|||
}
|
||||
|
||||
/// Subtracts the modulus from this element if this element is not in the
|
||||
/// field. Only used interally.
|
||||
/// field. Only used internally.
|
||||
#[inline(always)]
|
||||
fn reduce(&mut self) {
|
||||
if !self.is_valid() {
|
||||
|
|
|
@ -349,7 +349,7 @@ pub trait PrimeFieldRepr: Sized +
|
|||
AsMut<[u64]> +
|
||||
From<u64>
|
||||
{
|
||||
/// Subtract another reprensetation from this one, returning the borrow bit.
|
||||
/// Subtract another represetation from this one, returning the borrow bit.
|
||||
fn sub_noborrow(&mut self, other: &Self) -> bool;
|
||||
|
||||
/// Add another representation to this one, returning the carry bit.
|
||||
|
@ -442,7 +442,7 @@ pub enum GroupDecodingError {
|
|||
NotInSubgroup,
|
||||
/// One of the coordinates could not be decoded
|
||||
CoordinateDecodingError(&'static str, PrimeFieldDecodingError),
|
||||
/// The compression mode of the encoded elemnet was not as expected
|
||||
/// The compression mode of the encoded element was not as expected
|
||||
UnexpectedCompressionMode,
|
||||
/// The encoding contained bits that should not have been set
|
||||
UnexpectedInformation
|
||||
|
@ -523,7 +523,7 @@ pub trait PrimeField: Field
|
|||
/// Convert this prime field element into a biginteger representation.
|
||||
fn from_repr(Self::Repr) -> Result<Self, PrimeFieldDecodingError>;
|
||||
|
||||
/// Convert a biginteger reprensentation into a prime field element, if
|
||||
/// Convert a biginteger representation into a prime field element, if
|
||||
/// the number is an element of the field.
|
||||
fn into_repr(&self) -> Self::Repr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue