diff --git a/bitcoin/src/blockdata/script/tests.rs b/bitcoin/src/blockdata/script/tests.rs index 88c641d4..d2a970a0 100644 --- a/bitcoin/src/blockdata/script/tests.rs +++ b/bitcoin/src/blockdata/script/tests.rs @@ -176,7 +176,7 @@ fn p2pk_public_key_compressed_key_returns_some() { #[test] fn script_x_only_key() { - // Notice the "20" which prepends the keystr. That 20 is hexidecimal for "32". The Builder automatically adds the 32 opcode + // Notice the "20" which prepends the keystr. That 20 is hexadecimal for "32". The Builder automatically adds the 32 opcode // to our script in order to give a heads up to the script compiler that it should add the next 32 bytes to the stack. // From: https://github.com/bitcoin-core/btcdeb/blob/e8c2750c4a4702768c52d15640ed03bf744d2601/doc/tapscript-example.md?plain=1#L43 const KEYSTR: &str = "209997a497d964fc1a62885b05a51166a65a90df00492c8d7cf61d6accf54803be"; diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 2e15f30a..caf4274d 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -1181,7 +1181,7 @@ impl From<&Transaction> for Wtxid { /// of the to-be-constructed transaction. /// /// Note that lengths of the scripts and witness elements must be non-serialized, IOW *without* the -/// preceding compact size. The lenght of preceding compact size is computed and added inside the +/// preceding compact size. The length of preceding compact size is computed and added inside the /// function for convenience. /// /// If you have the transaction already constructed (except for signatures) with a dummy value for diff --git a/bitcoin/src/pow.rs b/bitcoin/src/pow.rs index 24772b68..68afaab4 100644 --- a/bitcoin/src/pow.rs +++ b/bitcoin/src/pow.rs @@ -1676,13 +1676,13 @@ mod tests { } #[test] - fn u256_wrapping_add_wraps_at_boundry() { + fn u256_wrapping_add_wraps_at_boundary() { assert_eq!(U256::MAX.wrapping_add(U256::ONE), U256::ZERO); assert_eq!(U256::MAX.wrapping_add(U256::from(2_u8)), U256::ONE); } #[test] - fn u256_wrapping_sub_wraps_at_boundry() { + fn u256_wrapping_sub_wraps_at_boundary() { assert_eq!(U256::ZERO.wrapping_sub(U256::ONE), U256::MAX); assert_eq!(U256::ONE.wrapping_sub(U256::from(2_u8)), U256::MAX); }