diff --git a/src/namespaced_hash.rs b/src/namespaced_hash.rs index d8b6b78..78b0ef2 100644 --- a/src/namespaced_hash.rs +++ b/src/namespaced_hash.rs @@ -60,7 +60,7 @@ impl Default for NamespacedSha2Hasher { } } -/// An extension of [`MerkleHash`] indicating the hasher is namespace aware. This allows for the creation of +/// An extension of [`MerkleHash`] indicating that the hasher is namespace aware. This allows for the creation of /// namespaced merkle trees and namespaced merkle proofs. pub trait NamespaceMerkleHasher: MerkleHash { /// Create a new hasher which ignores the max namespace diff --git a/src/nmt_proof.rs b/src/nmt_proof.rs index 3ce8fb7..fd3fde7 100644 --- a/src/nmt_proof.rs +++ b/src/nmt_proof.rs @@ -29,7 +29,7 @@ pub enum NamespaceProof { proof: Proof, /// Whether to treat the maximum possible namespace as a special marker value and ignore it in computing namespace ranges ignore_max_ns: bool, - /// A leaf that *is* present in the tree, if the namesapce being proven absent falls within + /// A leaf that *is* present in the tree, if the namespace being proven absent falls within /// the namespace range covered by the root. leaf: Option>, },