From 5a02f40122f1bfa06c80bac93f68f5799225d133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Wed, 12 Jun 2024 21:50:03 +0800 Subject: [PATCH] docs(chain): fix docs --- crates/chain/src/keychain/txout_index.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/chain/src/keychain/txout_index.rs b/crates/chain/src/keychain/txout_index.rs index b8c0c4570..b43b73769 100644 --- a/crates/chain/src/keychain/txout_index.rs +++ b/crates/chain/src/keychain/txout_index.rs @@ -29,9 +29,9 @@ pub const DEFAULT_LOOKAHEAD: u32 = 25; /// and only one descriptor and each descriptor has one and only one keychain. The /// [`insert_descriptor`] method will return an error if you try and violate this invariant. This /// rule is a proxy for a stronger rule: no two descriptors should produce the same script pubkey. -/// Having two descriptors produce the same script pubkey should cause whichever keychain derives the -/// script pubkey first to be the effective owner of it but you should not rely on this behaviour. -/// ⚠ It is up you, the developer, not to violate this invariant. +/// Having two descriptors produce the same script pubkey should cause whichever keychain derives +/// the script pubkey first to be the effective owner of it but you should not rely on this +/// behaviour. ⚠ It is up you, the developer, not to violate this invariant. /// /// # Revealed script pubkeys /// @@ -341,7 +341,7 @@ impl KeychainTxOutIndex { } impl KeychainTxOutIndex { - /// Return the map of the keychain to descriptors. + /// Return all keychains and their corresponding descriptors. pub fn keychains( &self, ) -> impl DoubleEndedIterator)> + ExactSizeIterator + '_