From 95d1a405c738b89f2ebc4d6938766fb1667f6fca Mon Sep 17 00:00:00 2001 From: stellrust Date: Mon, 21 Jul 2025 23:55:08 +0800 Subject: [PATCH] chore: fix some minor issues in comments Signed-off-by: stellrust --- src/dynafed.rs | 4 ++-- src/transaction.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dynafed.rs b/src/dynafed.rs index bd78eab6..c10bf8af 100644 --- a/src/dynafed.rs +++ b/src/dynafed.rs @@ -152,7 +152,7 @@ impl FullParams { crate::fast_merkle_root::fast_merkle_root(&leaves[..]) } - /// Turns paramers into compact parameters. + /// Turns parameters into compact parameters. /// This returns self for compact params and [None] for null ones. pub fn into_compact(self) -> Params { Params::Compact { @@ -388,7 +388,7 @@ impl Params { } } - /// Turns paramers into compact parameters. + /// Turns parameters into compact parameters. /// This returns self for compact params and [None] for null ones. pub fn into_compact(self) -> Option { match self { diff --git a/src/transaction.rs b/src/transaction.rs index ae012df8..5af11ae6 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -241,7 +241,7 @@ impl Sequence { self.is_relative_lock_time() & (self.0 & Sequence::LOCK_TYPE_MASK == 0) } - /// Returns `true` if the sequene number encodes a time interval based relative lock-time. + /// Returns `true` if the sequence number encodes a time interval based relative lock-time. #[inline] pub fn is_time_locked(&self) -> bool { self.is_relative_lock_time() & (self.0 & Sequence::LOCK_TYPE_MASK > 0) @@ -479,7 +479,7 @@ impl<'tx> PeginData<'tx> { /// A transaction input, which defines old coins to be consumed #[derive(Clone, PartialEq, Eq, Debug, Hash, PartialOrd, Ord)] pub struct TxIn { - /// The reference to the previous output that is being used an an input + /// The reference to the previous output that is being used as an input pub previous_output: OutPoint, /// Flag indicating that `previous_outpoint` refers to something on the main chain pub is_pegin: bool,