From 2b8d96581a9f2c7722e01070969e4a89cbd25d1f Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Mon, 4 Apr 2022 17:59:04 +0200 Subject: [PATCH] Rename TapTree::iter into TapTree::script_leaves --- src/util/psbt/map/output.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/psbt/map/output.rs b/src/util/psbt/map/output.rs index 0dd6df22..e32792c2 100644 --- a/src/util/psbt/map/output.rs +++ b/src/util/psbt/map/output.rs @@ -155,9 +155,9 @@ impl TapTree { self.0 } - /// Returns iterator for a taproot script tree, operating in DFS order over leaf depth and - /// leaf script pairs. - pub fn iter(&self) -> TapTreeIter { + /// Returns [`TapTreeIter`] iterator for a taproot script tree, operating in DFS order over + /// leaf depth and leaf script pairs. + pub fn script_leaves(&self) -> TapTreeIter { self.into_iter() } }