From d2f47cfa2d3306f0367eb373cb04a70c85b0a38a Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Mon, 14 Aug 2017 09:46:55 +0100 Subject: [PATCH] Fix minor typos in comments/docs. --- src/bls12_381/fq.rs | 2 +- src/bls12_381/fr.rs | 2 +- src/lib.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bls12_381/fq.rs b/src/bls12_381/fq.rs index edfe1500c..6ebd8d49a 100644 --- a/src/bls12_381/fq.rs +++ b/src/bls12_381/fq.rs @@ -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() { diff --git a/src/bls12_381/fr.rs b/src/bls12_381/fr.rs index 9fc90ee0a..8a1fbd533 100644 --- a/src/bls12_381/fr.rs +++ b/src/bls12_381/fr.rs @@ -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() { diff --git a/src/lib.rs b/src/lib.rs index 62abed95f..37f511102 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -349,7 +349,7 @@ pub trait PrimeFieldRepr: Sized + AsMut<[u64]> + From { - /// 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; - /// 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;