From 2d5af832f8d577f3aeb09f472dcfb4f97e91a845 Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Thu, 11 Jan 2024 02:10:25 +0800 Subject: [PATCH] Fix typos (#290) * fix typo * fix typo * Fix typo --- src/gadgets/ecc.rs | 2 +- src/provider/traits.rs | 2 +- src/traits/commitment.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gadgets/ecc.rs b/src/gadgets/ecc.rs index ea181240e..692f03916 100644 --- a/src/gadgets/ecc.rs +++ b/src/gadgets/ecc.rs @@ -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>( &self, mut cs: CS, diff --git a/src/provider/traits.rs b/src/provider/traits.rs index caea6a747..5a1d83f52 100644 --- a/src/provider/traits.rs +++ b/src/provider/traits.rs @@ -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; - /// Returns the affine coordinates (x, y, infinty) for the point + /// Returns the affine coordinates (x, y, infinity) for the point fn to_coordinates(&self) -> (::Base, ::Base, bool); } diff --git a/src/traits/commitment.rs b/src/traits/commitment.rs index 5bc298a82..cb97eac61 100644 --- a/src/traits/commitment.rs +++ b/src/traits/commitment.rs @@ -56,7 +56,7 @@ pub trait CommitmentTrait: fn decompress(c: &Self::CompressedCommitment) -> Result; } -/// 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.