From bfac2372878a9c7d98c18cdca5881dd64fdc0e16 Mon Sep 17 00:00:00 2001 From: calciumbe <192480234+calciumbe@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:34:36 +0800 Subject: [PATCH 1/5] base58: fix typo --- base58/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From bcf85809133a6017b309c731b04a7f02e8229f33 Mon Sep 17 00:00:00 2001 From: calciumbe <192480234+calciumbe@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:34:54 +0800 Subject: [PATCH 2/5] bitcoin: fix typo --- bitcoin/src/merkle_tree/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 9a5970dbfe9e084debb38935c942a9002bc363a9 Mon Sep 17 00:00:00 2001 From: calciumbe <192480234+calciumbe@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:35:01 +0800 Subject: [PATCH 3/5] chacha20_poly1305: fix typo --- chacha20_poly1305/src/chacha20.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From a6a746b8c07a54e45c9056cf502267d5d1278fc1 Mon Sep 17 00:00:00 2001 From: calciumbe <192480234+calciumbe@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:35:08 +0800 Subject: [PATCH 4/5] hashes: fix typo --- hashes/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) From 589dd025df938da3efac277511836cda5c53aa06 Mon Sep 17 00:00:00 2001 From: calciumbe <192480234+calciumbe@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:35:14 +0800 Subject: [PATCH 5/5] units: fix typo --- units/src/fee_rate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/units/src/fee_rate.rs b/units/src/fee_rate.rs index 3429aa44a..c85b91db9 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.