diff --git a/Cargo.toml b/Cargo.toml index a19bc0038..9cb5e3d27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/ebfull/pairing" [dependencies] rand = "0.3" byteorder = "1.1.0" -clippy = { version = "0.0.148", optional = true } +clippy = { version = "0.0.151", optional = true } [features] unstable-wnaf = [] 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/fq6.rs b/src/bls12_381/fq6.rs index 2c62a9237..4d1e4702a 100644 --- a/src/bls12_381/fq6.rs +++ b/src/bls12_381/fq6.rs @@ -3,7 +3,7 @@ use ::{Field}; use super::fq2::Fq2; use super::fq::{FROBENIUS_COEFF_FQ6_C1, FROBENIUS_COEFF_FQ6_C2}; -/// An element of Fq6, represented by c0 + c1 * v + c2 * v^2. +/// An element of Fq6, represented by c0 + c1 * v + c2 * v^(2). #[derive(Copy, Clone, Debug, Eq, PartialEq)] pub struct Fq6 { pub c0: Fq2, 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;