Skip to content

Commit

Permalink
Fix some typos (arkworks-rs#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodDaisy authored Nov 5, 2023
1 parent 27d0c52 commit c7e1642
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ec/src/hashing/curve_maps/swu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ mod test {
/// The point of the test is to get a simple SWU compatible curve and make
/// simple hash
#[test]
fn hash_arbitary_string_to_curve_swu() {
fn hash_arbitrary_string_to_curve_swu() {
let test_swu_to_curve_hasher = MapToCurveBasedHasher::<
Projective<TestSWUMapToCurveConfig>,
DefaultFieldHasher<Sha256, 128>,
Expand Down
2 changes: 1 addition & 1 deletion ec/src/hashing/map_to_curve_hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub trait MapToCurve<T: CurveGroup>: Sized {
/// Constructs a new mapping.
fn new() -> Result<Self, HashToCurveError>;

/// Map an arbitary field element to a corresponding curve point.
/// Map an arbitrary field element to a corresponding curve point.
fn map_to_curve(&self, point: T::BaseField) -> Result<T::Affine, HashToCurveError>;
}

Expand Down
2 changes: 1 addition & 1 deletion poly/src/polynomial/univariate/dense.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ mod tests {
pub type F5 = Fp64<MontBackend<F5Config, 1>>;

// if the leading coefficient were uniformly sampled from all of F, this
// test would fail with high probabiliy ~99.9%
// test would fail with high probability ~99.9%
for i in 1..=30 {
assert_eq!(DensePolynomial::<F5>::rand(i, rng).degree(), i);
}
Expand Down

0 comments on commit c7e1642

Please sign in to comment.