@@ -183,15 +183,15 @@ impl core::str::FromStr for OutPoint {
183
183
#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
184
184
#[ cfg_attr( feature = "serde" , serde( crate = "actual_serde" ) ) ]
185
185
pub struct TxIn {
186
- /// The reference to the previous output that is being used an an input.
186
+ /// The reference to the previous output that is being used as an input.
187
187
pub previous_output : OutPoint ,
188
188
/// The script which pushes values on the stack which will cause
189
189
/// the referenced output's script to be accepted.
190
190
pub script_sig : ScriptBuf ,
191
191
/// The sequence number, which suggests to miners which of two
192
192
/// conflicting transactions should be preferred, or 0xFFFFFFFF
193
193
/// to ignore this feature. This is generally never used since
194
- /// the miner behaviour cannot be enforced.
194
+ /// the miner behavior cannot be enforced.
195
195
pub sequence : Sequence ,
196
196
/// Witness data: an array of byte-arrays.
197
197
/// Note that this field is *not* (de)serialized with the rest of the TxIn in
@@ -230,7 +230,7 @@ impl TxIn {
230
230
( 36 + VarInt ( script_sig_size as u64 ) . len ( ) + script_sig_size + 4 ) * 4
231
231
}
232
232
233
- /// The weight of the TxIn when it's included in a segwit transaction (i.e., a transcation
233
+ /// The weight of the TxIn when it's included in a segwit transaction (i.e., a transaction
234
234
/// having at least one segwit input).
235
235
///
236
236
/// This always takes into account the witness, even when empty, in which
@@ -261,7 +261,7 @@ impl Default for TxIn {
261
261
/// - Indicating whether absolute lock-time (specified in `lock_time` field of [`Transaction`])
262
262
/// is enabled.
263
263
/// - Indicating and encoding [BIP-68] relative lock-times.
264
- /// - Indicating whether a transcation opts-in to [BIP-125] replace-by-fee.
264
+ /// - Indicating whether a transaction opts-in to [BIP-125] replace-by-fee.
265
265
///
266
266
/// Note that transactions spending an output with `OP_CHECKLOCKTIMEVERIFY`MUST NOT use
267
267
/// `Sequence::MAX` for the corresponding input. [BIP-65]
@@ -353,7 +353,7 @@ impl Sequence {
353
353
self . is_relative_lock_time ( ) & ( self . 0 & Sequence :: LOCK_TYPE_MASK == 0 )
354
354
}
355
355
356
- /// Returns `true` if the sequene number encodes a time interval based relative lock-time.
356
+ /// Returns `true` if the sequence number encodes a time interval based relative lock-time.
357
357
#[ inline]
358
358
pub fn is_time_locked ( & self ) -> bool {
359
359
self . is_relative_lock_time ( ) & ( self . 0 & Sequence :: LOCK_TYPE_MASK > 0 )
0 commit comments