diff --git a/bitcoin/src/blockdata/script/instruction.rs b/bitcoin/src/blockdata/script/instruction.rs index 6ec3d5613..575ba6311 100644 --- a/bitcoin/src/blockdata/script/instruction.rs +++ b/bitcoin/src/blockdata/script/instruction.rs @@ -31,7 +31,7 @@ impl Instruction<'_> { } } - /// Returns the number interpretted by the script parser + /// Returns the number interpreted by the script parser /// if it can be coerced into a number. /// /// This does not require the script num to be minimal. diff --git a/bitcoin/src/p2p/message.rs b/bitcoin/src/p2p/message.rs index fda7cdd47..d02483a7f 100644 --- a/bitcoin/src/p2p/message.rs +++ b/bitcoin/src/p2p/message.rs @@ -27,7 +27,7 @@ use crate::{block, consensus, transaction}; pub const MAX_INV_SIZE: usize = 50_000; /// Maximum size, in bytes, of an encoded message -/// This by neccessity should be larger tham `MAX_VEC_SIZE` +/// This by necessity should be larger tham `MAX_VEC_SIZE` pub const MAX_MSG_SIZE: usize = 5_000_000; /// Serializer for command string diff --git a/bitcoin/src/taproot/serialized_signature.rs b/bitcoin/src/taproot/serialized_signature.rs index d00730601..2bc849b84 100644 --- a/bitcoin/src/taproot/serialized_signature.rs +++ b/bitcoin/src/taproot/serialized_signature.rs @@ -217,7 +217,7 @@ mod into_iter { #[inline] fn size_hint(&self) -> (usize, Option) { - // can't underlflow thanks to the invariant + // can't underflow thanks to the invariant let len = self.signature.len() - self.pos; (len, Some(len)) } diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs index e5e23417c..345c3badf 100644 --- a/units/src/amount/mod.rs +++ b/units/src/amount/mod.rs @@ -139,7 +139,7 @@ impl Denomination { } } -/// These form are ambigous and could have many meanings. For example, M could denote Mega or Milli. +/// These form are ambiguous and could have many meanings. For example, M could denote Mega or Milli. /// If any of these forms are used, an error type `PossiblyConfusingDenomination` is returned. const CONFUSING_FORMS: [&str; 6] = ["CBTC", "Cbtc", "MBTC", "Mbtc", "UBTC", "Ubtc"];