diff --git a/base58/src/lib.rs b/base58/src/lib.rs index b5b977ebc..df2c15103 100644 --- a/base58/src/lib.rs +++ b/base58/src/lib.rs @@ -337,7 +337,7 @@ mod benches { #[bench] pub fn bench_encode_check_xpub(bh: &mut Bencher) { - let data: alloc::vec::Vec<_> = (0u8..78).collect(); // lenght of xpub + let data: alloc::vec::Vec<_> = (0u8..78).collect(); // length of xpub bh.iter(|| { let r = super::encode_check(&data); diff --git a/bitcoin/src/merkle_tree/mod.rs b/bitcoin/src/merkle_tree/mod.rs index b656ce7e7..82801fdd4 100644 --- a/bitcoin/src/merkle_tree/mod.rs +++ b/bitcoin/src/merkle_tree/mod.rs @@ -41,7 +41,7 @@ impl_hashencode!(WitnessMerkleNode); /// Other Merkle trees in Bitcoin, such as those used in Taproot commitments, /// do not use this algorithm and cannot use this trait. pub trait MerkleNode: Copy { - /// The hash (TXID or WTXID) of a transaciton in the tree. + /// The hash (TXID or WTXID) of a transaction in the tree. type Leaf: TxIdentifier; /// Convert a hash to a leaf node of the tree. diff --git a/chacha20_poly1305/src/chacha20.rs b/chacha20_poly1305/src/chacha20.rs index 51d0e4b88..0a73ca368 100644 --- a/chacha20_poly1305/src/chacha20.rs +++ b/chacha20_poly1305/src/chacha20.rs @@ -45,7 +45,7 @@ impl Nonce { /// /// This type is attempting to be as close as possible to the experimental [`core::simd::u32x4`] /// which at this time is feature gated and well beyond the project's MSRV. But ideally -/// an easy transistion can be made in the future. +/// an easy transition can be made in the future. /// /// A few SIMD relevant design choices: /// * Heavy use of inline functions to help the compiler recognize vectorizable sections. diff --git a/hashes/CHANGELOG.md b/hashes/CHANGELOG.md index ea31a9be8..bd9aed733 100644 --- a/hashes/CHANGELOG.md +++ b/hashes/CHANGELOG.md @@ -6,7 +6,7 @@ # 0.15.0 - 2024-10-16 -This release is massive. The biggest visable changes are to the `Hash` trait, which has mostly been replaced +This release is massive. The biggest visible changes are to the `Hash` trait, which has mostly been replaced by inherent functions. You should not need to import it at all anymore for normal usage. Check out how we are using `hashes` in `rust-bitcoin` to see an example. Enjoy! @@ -52,7 +52,7 @@ using `hashes` in `rust-bitcoin` to see an example. Enjoy! * Bump MSRV to Rust version 1.56.1 [#2188](https://github.com/rust-bitcoin/rust-bitcoin/pull/2188) -## API improvemnts +## API improvements * Add support for SHA384 [#2538](https://github.com/rust-bitcoin/rust-bitcoin/pull/2538) * Make from_hex inherent for byte-like types [#2491](https://github.com/rust-bitcoin/rust-bitcoin/pull/2491) diff --git a/units/src/fee_rate.rs b/units/src/fee_rate.rs index 8c9b79d3d..2483bd091 100644 --- a/units/src/fee_rate.rs +++ b/units/src/fee_rate.rs @@ -121,7 +121,7 @@ impl FeeRate { /// Checked addition. /// - /// Computes `self + rhs` returning [`None`] if overflow occured. + /// Computes `self + rhs` returning [`None`] if overflow occurred. #[must_use] pub const fn checked_add(self, rhs: u64) -> Option { // No `map()` in const context. @@ -133,7 +133,7 @@ impl FeeRate { /// Checked subtraction. /// - /// Computes `self - rhs` returning [`None`] if overflow occured. + /// Computes `self - rhs` returning [`None`] if overflow occurred. #[must_use] pub const fn checked_sub(self, rhs: u64) -> Option { // No `map()` in const context.