]> Untitled Git - bdk/commitdiff
doc(chain,esplora): minor documentation improvements
authorvmammal <valuedmammal@protonmail.com>
Wed, 17 Jan 2024 19:07:14 +0000 (14:07 -0500)
committervmammal <valuedmammal@protonmail.com>
Wed, 17 Jan 2024 19:07:14 +0000 (14:07 -0500)
* Corrects an awkward use of the word 'an'
* Adds missing backticks, brackets in a few places

crates/chain/src/keychain.rs
crates/chain/src/tx_graph.rs
crates/esplora/src/async_ext.rs
crates/esplora/src/blocking_ext.rs

index d443ee440b969ebadb23c9386bf035cf862dbbfb..c20d1f6cd914cfcafda770b6d165936f008dc6da 100644 (file)
@@ -20,7 +20,7 @@ pub use txout_index::*;
 /// Represents updates to the derivation index of a [`KeychainTxOutIndex`].
 /// It maps each keychain `K` to its last revealed index.
 ///
-/// It can be applied to [`KeychainTxOutIndex`] with [`apply_changeset`]. [`ChangeSet] are
+/// It can be applied to [`KeychainTxOutIndex`] with [`apply_changeset`]. [`ChangeSet`]s are
 /// monotone in that they will never decrease the revealed derivation index.
 ///
 /// [`KeychainTxOutIndex`]: crate::keychain::KeychainTxOutIndex
index d43c160d75536f0b6c2a055e3560f9a88ab3fe2a..66d1e9502f5b5119c34b3eb5b800b70543167b8f 100644 (file)
@@ -337,7 +337,7 @@ impl<A> TxGraph<A> {
 
     /// The transactions spending from this output.
     ///
-    /// `TxGraph` allows conflicting transactions within the graph. Obviously the transactions in
+    /// [`TxGraph`] allows conflicting transactions within the graph. Obviously the transactions in
     /// the returned set will never be in the same active-chain.
     pub fn outspends(&self, outpoint: OutPoint) -> &HashSet<Txid> {
         self.spends.get(&outpoint).unwrap_or(&self.empty_outspends)
index 649cd6891a981724ae7996bbf83008a4476e68cc..f31b48703554f27f95d57ab8d944123c1210e3ec 100644 (file)
@@ -19,7 +19,7 @@ use crate::{anchor_from_status, ASSUME_FINAL_DEPTH};
 #[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
 #[cfg_attr(not(target_arch = "wasm32"), async_trait)]
 pub trait EsploraAsyncExt {
-    /// Prepare an [`LocalChain`] update with blocks fetched from Esplora.
+    /// Prepare a [`LocalChain`] update with blocks fetched from Esplora.
     ///
     /// * `local_tip` is the previous tip of [`LocalChain::tip`].
     /// * `request_heights` is the block heights that we are interested in fetching from Esplora.
index 493c4b8a791ea580106f2687754f1410b99a06f8..ac750f2f91f0bbac80514ef61ea9a4055a629016 100644 (file)
@@ -17,7 +17,7 @@ use crate::{anchor_from_status, ASSUME_FINAL_DEPTH};
 ///
 /// [crate-level documentation]: crate
 pub trait EsploraExt {
-    /// Prepare an [`LocalChain`] update with blocks fetched from Esplora.
+    /// Prepare a [`LocalChain`] update with blocks fetched from Esplora.
     ///
     /// * `local_tip` is the previous tip of [`LocalChain::tip`].
     /// * `request_heights` is the block heights that we are interested in fetching from Esplora.