From bc83e41126b75c32374a4fa6ba054c114ee62704 Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Tue, 10 Sep 2024 09:51:36 +0000 Subject: [PATCH] fix: typos --- crates/core/src/checkpoint.rs | 2 +- crates/core/src/tx_update.rs | 2 +- crates/wallet/src/wallet/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core/src/checkpoint.rs b/crates/core/src/checkpoint.rs index 0abadda1d..f78aca9c5 100644 --- a/crates/core/src/checkpoint.rs +++ b/crates/core/src/checkpoint.rs @@ -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 { diff --git a/crates/core/src/tx_update.rs b/crates/core/src/tx_update.rs index 29d6c2530..7707578ee 100644 --- a/crates/core/src/tx_update.rs +++ b/crates/core/src/tx_update.rs @@ -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 { diff --git a/crates/wallet/src/wallet/mod.rs b/crates/wallet/src/wallet/mod.rs index a70a70b9a..1319b8f05 100644 --- a/crates/wallet/src/wallet/mod.rs +++ b/crates/wallet/src/wallet/mod.rs @@ -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