@@ -200,7 +200,7 @@ impl<K: Clone + Ord + Debug> Indexer for KeychainTxOutIndex<K> {
200
200
}
201
201
202
202
impl < K > KeychainTxOutIndex < K > {
203
- /// Construct a [`KeychainTxOutIndex`] with the given `lookahead` and `use_spk_cache ` boolean.
203
+ /// Construct a [`KeychainTxOutIndex`] with the given `lookahead` and `persist_spks ` boolean.
204
204
///
205
205
/// # Lookahead
206
206
///
@@ -221,10 +221,10 @@ impl<K> KeychainTxOutIndex<K> {
221
221
///
222
222
/// ```rust
223
223
/// # use bdk_chain::keychain_txout::KeychainTxOutIndex;
224
- /// // Derive 20 future addresses per chain and persist + reload script pubkeys via ChangeSets:
224
+ /// // Derive 20 future addresses per keychain and persist + reload script pubkeys via ChangeSets:
225
225
/// let idx = KeychainTxOutIndex::<&'static str>::new(20, true);
226
226
///
227
- /// // Derive 10 future addresses per chain without persistence:
227
+ /// // Derive 10 future addresses per keychain without persistence:
228
228
/// let idx = KeychainTxOutIndex::<&'static str>::new(10, false);
229
229
/// ```
230
230
pub fn new ( lookahead : u32 , persist_spks : bool ) -> Self {
@@ -251,7 +251,7 @@ impl<K> KeychainTxOutIndex<K> {
251
251
impl < K : Clone + Ord + Debug > KeychainTxOutIndex < K > {
252
252
/// Construct `KeychainTxOutIndex<K>` from the given `changeset`.
253
253
///
254
- /// Shorthand for called [`new`] and then [`apply_changeset`].
254
+ /// Shorthand for calling [`new`] and then [`apply_changeset`].
255
255
///
256
256
/// [`new`]: Self::new
257
257
/// [`apply_changeset`]: Self::apply_changeset
@@ -1002,7 +1002,7 @@ impl<K: core::fmt::Debug> std::error::Error for InsertDescriptorError<K> {}
1002
1002
///
1003
1003
/// It tracks:
1004
1004
/// 1. `last_revealed`: the highest derivation index revealed per descriptor.
1005
- /// 2. `spks `: the cache of derived script pubkeys to persist across runs.
1005
+ /// 2. `spk_cache `: the cache of derived script pubkeys to persist across runs.
1006
1006
///
1007
1007
/// You can apply a `ChangeSet` to a `KeychainTxOutIndex` via
1008
1008
/// [`KeychainTxOutIndex::apply_changeset`], or merge two change sets with [`ChangeSet::merge`].
@@ -1011,7 +1011,7 @@ impl<K: core::fmt::Debug> std::error::Error for InsertDescriptorError<K> {}
1011
1011
///
1012
1012
/// - `last_revealed` is monotonic: merging retains the maximum index for each descriptor and never
1013
1013
/// decreases.
1014
- /// - `spks ` accumulates entries: once a script pubkey is persisted, it remains available for
1014
+ /// - `spk_cache ` accumulates entries: once a script pubkey is persisted, it remains available for
1015
1015
/// reload. If the same descriptor and index appear again with a new script pubkey, the latter
1016
1016
/// value overrides the former.
1017
1017
///
0 commit comments