Merge rust-bitcoin/rust-bitcoin#4149: Fix typos in code comments and documentation
bb8f833ca0
Update instruction.rs (kilavvy)0ce622e668
Update message.rs (kilavvy)f61941bbe6
Update serialized_signature.rs (kilavvy)1d2de62e01
Update mod.rs (kilavvy) Pull request description: This PR fixes several typos in comments across multiple files: - Fixed typo `interpretted` -> `interpreted` in `blockdata/script/instruction.rs` - Fixed typo `neccessity` -> `necessity` in `p2p/message.rs` - Fixed typo `underlflow` -> `underflow` in `taproot/serialized_signature.rs` - Fixed typo `ambigous` -> `ambiguous"` in `units/src/amount/mod.rs` These changes only affect comments and documentation, no functional code changes. ACKs for top commit: apoelstra: ACK bb8f833ca01688eaae75e0fa322f698d34243185; successfully ran local tests; though all these commits could be squashed IMO Tree-SHA512: d73dc2a86b20de87c0c5efb3e5042e3901c846236670e3a6501f4c93fd54328fef08bfeca276b93642e7b51d04cb8b9c8e1af558f3aabc3c924d60a61e58b031
This commit is contained in:
commit
22cecce99d
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -217,7 +217,7 @@ mod into_iter {
|
|||
|
||||
#[inline]
|
||||
fn size_hint(&self) -> (usize, Option<usize>) {
|
||||
// can't underlflow thanks to the invariant
|
||||
// can't underflow thanks to the invariant
|
||||
let len = self.signature.len() - self.pos;
|
||||
(len, Some(len))
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
|
||||
|
|
Loading…
Reference in New Issue