]> Untitled Git - bdk/commitdiff
fix: typos
authorJose Storopoli <jose@storopoli.io>
Tue, 10 Sep 2024 09:51:36 +0000 (09:51 +0000)
committerJose Storopoli <jose@storopoli.io>
Tue, 10 Sep 2024 09:51:36 +0000 (09:51 +0000)
crates/core/src/checkpoint.rs
crates/core/src/tx_update.rs
crates/wallet/src/wallet/mod.rs

index 0abadda1da6d17b0d542e34323766c8369d97298..f78aca9c5456b29df8d10d2eab982fb7d19a2e0b 100644 (file)
@@ -169,7 +169,7 @@ impl CheckPoint {
     /// The effect of `insert` depends on whether a height already exists. If it doesn't the
     /// `block_id` we inserted and all pre-existing blocks higher than it will be re-inserted after
     /// it. If the height already existed and has a conflicting block hash then it will be purged
-    /// along with all block followin it. The returned chain will have a tip of the `block_id`
+    /// along with all block following it. The returned chain will have a tip of the `block_id`
     /// passed in. Of course, if the `block_id` was already present then this just returns `self`.
     #[must_use]
     pub fn insert(self, block_id: BlockId) -> Self {
index 29d6c25308686f37d087a5d769f756a817a810fc..7707578eea6e93905fe79c202dc5addf7f736a52 100644 (file)
@@ -2,7 +2,7 @@ use crate::collections::{BTreeMap, BTreeSet, HashMap};
 use alloc::{sync::Arc, vec::Vec};
 use bitcoin::{OutPoint, Transaction, TxOut, Txid};
 
-/// Data object used to communicate updates about relevant transactions from some chain data soruce
+/// Data object used to communicate updates about relevant transactions from some chain data source
 /// to the core model (usually a `bdk_chain::TxGraph`).
 #[derive(Debug, Clone)]
 pub struct TxUpdate<A = ()> {
index a70a70b9aed29f34f647b78e19ccd2bfcf2f3034..1319b8f05052d7a896db05f629483a8d1c72ca55 100644 (file)
@@ -2377,7 +2377,7 @@ impl Wallet {
         }
     }
 
-    /// Get a mutable reference of the staged [`ChangeSet`] that is yet to be commited (if any).
+    /// Get a mutable reference of the staged [`ChangeSet`] that is yet to be committed (if any).
     pub fn staged_mut(&mut self) -> Option<&mut ChangeSet> {
         if self.stage.is_empty() {
             None