Skip to content

Commit

Permalink
Fix typos (#290)
Browse files Browse the repository at this point in the history
* fix typo

* fix typo

* Fix typo
  • Loading branch information
GoodDaisy authored and huitseeker committed Jan 20, 2024
1 parent c381f24 commit 2d5af83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gadgets/ecc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ where
}

/// Adds other point to this point and returns the result. Assumes that the two points are
/// different and that both `other.is_infinity` and `this.is_infinty` are bits
/// different and that both `other.is_infinity` and `this.is_infinity` are bits
pub fn add_internal<CS: ConstraintSystem<E::Base>>(
&self,
mut cs: CS,
Expand Down
2 changes: 1 addition & 1 deletion src/provider/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub trait DlogGroup:
/// Produce a vector of group elements using a static label
fn from_label(label: &'static [u8], n: usize) -> Vec<Self::Affine>;

/// Returns the affine coordinates (x, y, infinty) for the point
/// Returns the affine coordinates (x, y, infinity) for the point
fn to_coordinates(&self) -> (<Self as Group>::Base, <Self as Group>::Base, bool);
}

Expand Down
2 changes: 1 addition & 1 deletion src/traits/commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub trait CommitmentTrait<E: Engine>:
fn decompress(c: &Self::CompressedCommitment) -> Result<Self, NovaError>;
}

/// A trait that helps determine the lenght of a structure.
/// A trait that helps determine the length of a structure.
/// Note this does not impose any memory representation contraints on the structure.
pub trait Len {
/// Returns the length of the structure.
Expand Down

0 comments on commit 2d5af83

Please sign in to comment.