@@ -14,7 +14,7 @@ type NotCanonicalSet = HashSet<Txid>;
1414/// Modifies the canonicalization algorithm.
1515#[ derive( Debug , Default , Clone ) ]
1616pub struct CanonicalizationParams {
17- /// Transactions that will supercede all other transactions.
17+ /// Transactions that will supersede all other transactions.
1818 ///
1919 /// In case of conflicting transactions within `assume_canonical`, transactions that appear
2020 /// later in the list (have higher index) have precedence.
@@ -108,7 +108,7 @@ impl<'g, A: Anchor, C: ChainOracle> CanonicalIter<'g, A, C> {
108108 . iter ( )
109109 . last ( )
110110 . expect (
111- "tx taken from `unprocessed_txs_with_anchors` so it must atleast have an anchor" ,
111+ "tx taken from `unprocessed_txs_with_anchors` so it must at least have an anchor" ,
112112 )
113113 . confirmation_height_upper_bound ( ) ,
114114 ) ) ;
@@ -266,7 +266,7 @@ pub enum ObservedIn {
266266/// The reason why a transaction is canonical.
267267#[ derive( Debug , Clone , PartialEq , Eq ) ]
268268pub enum CanonicalReason < A > {
269- /// This transaction is explicitly assumed to be canonical by the caller, superceding all other
269+ /// This transaction is explicitly assumed to be canonical by the caller, superseding all other
270270 /// canonicalization rules.
271271 Assumed {
272272 /// Whether it is a descendant that is assumed to be canonical.
@@ -290,7 +290,7 @@ pub enum CanonicalReason<A> {
290290}
291291
292292impl < A : Clone > CanonicalReason < A > {
293- /// Constructs a [`CanonicalReason`] for a transaction that is assumed to supercede all other
293+ /// Constructs a [`CanonicalReason`] for a transaction that is assumed to supersede all other
294294 /// transactions.
295295 pub fn assumed ( ) -> Self {
296296 Self :: Assumed { descendant : None }
@@ -312,7 +312,7 @@ impl<A: Clone> CanonicalReason<A> {
312312 }
313313 }
314314
315- /// Contruct a new [`CanonicalReason`] from the original which is transitive to `descendant`.
315+ /// Construct a new [`CanonicalReason`] from the original which is transitive to `descendant`.
316316 ///
317317 /// This signals that either the [`ObservedIn`] or [`Anchor`] value belongs to the transaction's
318318 /// descendant, but is transitively relevant.
0 commit comments