Skip to content

Commit

Permalink
chore(primitives/src): typo fix (#452)
Browse files Browse the repository at this point in the history
* typo fix

* typo fix

* typo fix

* typo fix
  • Loading branch information
Frierened authored Dec 18, 2023
1 parent fd2bcfc commit e33a739
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions primitives/src/circuit/merkle_tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ pub struct Merkle3AryNodeVar {
}

/// Circuit variable for a Merkle non-membership proof of a 3-ary Merkle tree.
/// Constains:
/// Contains:
/// * a list of node variables in the path,
/// * a variable correseponsing to the position of the element.
#[derive(Debug, Clone)]
Expand All @@ -246,7 +246,7 @@ pub struct Merkle3AryNonMembershipProofVar {
}

/// Circuit variable for a Merkle proof of a 3-ary Merkle tree.
/// Constains:
/// Contains:
/// * a list of node variables in the path,
/// * a variable correseponsing to the value of the element.
#[derive(Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion primitives/src/circuit/rescue/non_native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ mod tests {
*circuit.witness_mut(fsks_var.components().0) = F::from(1_u32);
assert!(circuit.check_circuit_satisfiability(&[]).is_err());

// make data_vars of bad lenth
// make data_vars of bad length
let mut data_vars = data_vars;
let zero_var = FpElemVar::zero(
&circuit,
Expand Down
2 changes: 1 addition & 1 deletion primitives/src/merkle_tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl_to_traversal_path_biguint!(ark_ed_on_bn254::Fq);
impl_to_traversal_path_biguint!(ark_ed_on_bls12_377::Fq);
impl_to_traversal_path_biguint!(ark_ed_on_bls12_381::Fq);

/// Trait for a succint merkle tree commitment
/// Trait for a succinct merkle tree commitment
pub trait MerkleCommitment<T: NodeValue>:
Eq
+ PartialEq
Expand Down
2 changes: 1 addition & 1 deletion primitives/src/pcs/poly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use itertools::{

use crate::errors::PrimitivesError;

// TODO: (alex) change to trait alias once stablized in Rust:
// TODO: (alex) change to trait alias once stabilized in Rust:
// `https://doc.rust-lang.org/unstable-book/language-features/trait-alias.html`
/// A trait bound alias for generalized coefficient type used in
/// `GeneralDensePolynomial`. Concrete instantiations can be both field or
Expand Down

0 comments on commit e33a739

Please sign in to comment.