From: Leonardo Lima Date: Fri, 12 Sep 2025 05:53:51 +0000 (+1000) Subject: chore(docs): fix typo in docs X-Git-Tag: core-0.6.3~7^2~3 X-Git-Url: http://internal-gitweb-vhost/?a=commitdiff_plain;h=6cf720e48fe7ac58d9c161387710862a1d64909a;p=bdk chore(docs): fix typo in docs --- diff --git a/crates/chain/src/canonical_iter.rs b/crates/chain/src/canonical_iter.rs index 204ead45..da1a124e 100644 --- a/crates/chain/src/canonical_iter.rs +++ b/crates/chain/src/canonical_iter.rs @@ -14,7 +14,7 @@ type NotCanonicalSet = HashSet; /// Modifies the canonicalization algorithm. #[derive(Debug, Default, Clone)] pub struct CanonicalizationParams { - /// Transactions that will supercede all other transactions. + /// Transactions that will supersede all other transactions. /// /// In case of conflicting transactions within `assume_canonical`, transactions that appear /// later in the list (have higher index) have precedence. @@ -108,7 +108,7 @@ impl<'g, A: Anchor, C: ChainOracle> CanonicalIter<'g, A, C> { .iter() .last() .expect( - "tx taken from `unprocessed_txs_with_anchors` so it must atleast have an anchor", + "tx taken from `unprocessed_txs_with_anchors` so it must at least have an anchor", ) .confirmation_height_upper_bound(), )); @@ -266,7 +266,7 @@ pub enum ObservedIn { /// The reason why a transaction is canonical. #[derive(Debug, Clone, PartialEq, Eq)] pub enum CanonicalReason { - /// This transaction is explicitly assumed to be canonical by the caller, superceding all other + /// This transaction is explicitly assumed to be canonical by the caller, superseding all other /// canonicalization rules. Assumed { /// Whether it is a descendant that is assumed to be canonical. @@ -290,7 +290,7 @@ pub enum CanonicalReason { } impl CanonicalReason { - /// Constructs a [`CanonicalReason`] for a transaction that is assumed to supercede all other + /// Constructs a [`CanonicalReason`] for a transaction that is assumed to supersede all other /// transactions. pub fn assumed() -> Self { Self::Assumed { descendant: None } @@ -312,7 +312,7 @@ impl CanonicalReason { } } - /// Contruct a new [`CanonicalReason`] from the original which is transitive to `descendant`. + /// Construct a new [`CanonicalReason`] from the original which is transitive to `descendant`. /// /// This signals that either the [`ObservedIn`] or [`Anchor`] value belongs to the transaction's /// descendant, but is transitively relevant.