Rename TapTree::iter into TapTree::script_leaves

This commit is contained in:
Dr Maxim Orlovsky 2022-04-04 17:59:04 +02:00
parent 6f871ba47d
commit 2b8d96581a
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
1 changed files with 3 additions and 3 deletions

View File

@ -155,9 +155,9 @@ impl TapTree {
self.0 self.0
} }
/// Returns iterator for a taproot script tree, operating in DFS order over leaf depth and /// Returns [`TapTreeIter`] iterator for a taproot script tree, operating in DFS order over
/// leaf script pairs. /// leaf depth and leaf script pairs.
pub fn iter(&self) -> TapTreeIter { pub fn script_leaves(&self) -> TapTreeIter {
self.into_iter() self.into_iter()
} }
} }