diff --git a/miden-crypto/src/merkle/sparse_path.rs b/miden-crypto/src/merkle/sparse_path.rs index fa064bb..8d3ed95 100644 --- a/miden-crypto/src/merkle/sparse_path.rs +++ b/miden-crypto/src/merkle/sparse_path.rs @@ -103,6 +103,7 @@ impl SparseMerklePath { // ============================================================================================ /// Constructs a borrowing iterator over the nodes in this path. + /// Starts from the leaf and iterates toward the root (excluding root). pub fn iter(&self) -> impl ExactSizeIterator { self.into_iter() } @@ -196,7 +197,8 @@ impl From for Vec { // ITERATORS // ================================================================================================ -/// Iterator for [`SparseMerklePath`]. +/// Iterator for [`SparseMerklePath`]. Starts from the leaf and iterates toward the root (excluding +/// root). pub struct SparseMerklePathIter<'p> { /// The "inner" value we're iterating over. path: Cow<'p, SparseMerklePath>,