From f554b01e82664a0449cf86fd38ad632f2f43d402 Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Thu, 24 Apr 2025 15:53:27 +0300 Subject: [PATCH 1/6] Update params.rs --- bitcoin/src/network/params.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/network/params.rs b/bitcoin/src/network/params.rs index e322009be..35f68bfb0 100644 --- a/bitcoin/src/network/params.rs +++ b/bitcoin/src/network/params.rs @@ -8,7 +8,7 @@ //! # Custom Signets Example //! //! In various places in this crate we take `AsRef` as a parameter, in order to create a -//! custom type that can be used is such places you might want to do the following: +//! custom type that can be used in such places you might want to do the following: //! //! ``` //! use bitcoin::network::Params; From 1af34f92c55de96c99c21e68d5f04493cda541df Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Thu, 24 Apr 2025 16:28:38 +0300 Subject: [PATCH 2/6] Update message_compact_blocks.rs --- bitcoin/src/p2p/message_compact_blocks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/p2p/message_compact_blocks.rs b/bitcoin/src/p2p/message_compact_blocks.rs index d4d8153b5..333a8c243 100644 --- a/bitcoin/src/p2p/message_compact_blocks.rs +++ b/bitcoin/src/p2p/message_compact_blocks.rs @@ -9,7 +9,7 @@ use crate::internal_macros::impl_consensus_encoding; /// sendcmpct message #[derive(PartialEq, Eq, Clone, Debug, Copy, PartialOrd, Ord, Hash)] pub struct SendCmpct { - /// Request to be send compact blocks. + /// Request to be sent compact blocks. pub send_compact: bool, /// Compact Blocks protocol version number. pub version: u64, From 024f87e655081b48fcccd25b4d776bcc9623c74a Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Thu, 24 Apr 2025 16:30:44 +0300 Subject: [PATCH 3/6] Update error.rs --- bitcoin/src/psbt/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/psbt/error.rs b/bitcoin/src/psbt/error.rs index dcf244ad3..58338ab69 100644 --- a/bitcoin/src/psbt/error.rs +++ b/bitcoin/src/psbt/error.rs @@ -96,7 +96,7 @@ pub enum Error { InvalidLeafVersion, /// Parsing error indicating a Taproot error Taproot(&'static str), - /// Taproot tree deserilaization error + /// Taproot tree deserialization error TapTree(crate::taproot::IncompleteBuilderError), /// Error related to an xpub key XPubKey(&'static str), From 604b09554062f18269989a348a0995c1ee8a7f63 Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Thu, 24 Apr 2025 16:37:25 +0300 Subject: [PATCH 4/6] Update serialize.rs --- bitcoin/src/psbt/serialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/psbt/serialize.rs b/bitcoin/src/psbt/serialize.rs index e9492953a..25eef99c6 100644 --- a/bitcoin/src/psbt/serialize.rs +++ b/bitcoin/src/psbt/serialize.rs @@ -370,7 +370,7 @@ impl Serialize for TapTree { // safe to cast from usize to u8 buf.push(leaf_info.merkle_branch().len() as u8); buf.push(leaf_info.version().to_consensus()); - leaf_info.script().consensus_encode(&mut buf).expect("Vecs dont err"); + leaf_info.script().consensus_encode(&mut buf).expect("Vecs don't err"); } buf } From a4253fa5d9bb211f82e1f540e205390b8e1a2492 Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Thu, 24 Apr 2025 16:40:00 +0300 Subject: [PATCH 5/6] Update mod.rs --- bitcoin/src/taproot/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/taproot/mod.rs b/bitcoin/src/taproot/mod.rs index abcc8ecc4..3e513a78e 100644 --- a/bitcoin/src/taproot/mod.rs +++ b/bitcoin/src/taproot/mod.rs @@ -1316,7 +1316,7 @@ impl FutureLeafVersion { ) -> Result { match version { TAPROOT_LEAF_TAPSCRIPT => unreachable!( - "FutureLeafVersion::from_consensus should be never called for 0xC0 value" + "FutureLeafVersion::from_consensus should never be called for 0xC0 value" ), TAPROOT_ANNEX_PREFIX => Err(InvalidTaprootLeafVersionError(TAPROOT_ANNEX_PREFIX)), odd if odd & 0xFE != odd => Err(InvalidTaprootLeafVersionError(odd)), From c009a42e60f0b4302506f5fc104af38a6c15be21 Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Thu, 24 Apr 2025 16:46:01 +0300 Subject: [PATCH 6/6] Update internal_macros.rs --- bitcoin/src/internal_macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/internal_macros.rs b/bitcoin/src/internal_macros.rs index 9b97bb9bb..69cbfcc2a 100644 --- a/bitcoin/src/internal_macros.rs +++ b/bitcoin/src/internal_macros.rs @@ -244,7 +244,7 @@ macro_rules! only_non_doc_attrs { } pub(crate) use only_non_doc_attrs; -/// Defines an trait `$trait_name` and implements it for `ty`, used to define extension traits. +/// Defines a trait `$trait_name` and implements it for `ty`, used to define extension traits. macro_rules! define_extension_trait { ($(#[$($trait_attrs:tt)*])* $trait_vis:vis trait $trait_name:ident impl for $ty:ident { $(