From 2aac5a1f81a9bb217c4dfb7e45b96188ea60e35b Mon Sep 17 00:00:00 2001 From: NinaLua Date: Fri, 7 Mar 2025 17:03:58 +0800 Subject: [PATCH] Fix some comments Signed-off-by: NinaLua --- bitcoin/src/blockdata/transaction.rs | 2 +- bitcoin/src/crypto/key.rs | 2 +- hashes/src/macros.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 9a3707d5d..b53e87bc8 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -433,7 +433,7 @@ impl TransactionExt for Transaction { } /// Iterates over transaction outputs and for each output yields the length of the scriptPubkey. -// This exists to hardcode the type of the closure crated by `map`. +// This exists to hardcode the type of the closure created by `map`. pub struct TxOutToScriptPubkeyLengthIter<'a> { inner: core::slice::Iter<'a, TxOut>, } diff --git a/bitcoin/src/crypto/key.rs b/bitcoin/src/crypto/key.rs index c1d67bb64..4581298b5 100644 --- a/bitcoin/src/crypto/key.rs +++ b/bitcoin/src/crypto/key.rs @@ -997,7 +997,7 @@ impl fmt::Display for FromWifError { InvalidBase58PayloadLength(ref e) => write_err!(f, "decoded base58 data was an invalid length"; e), InvalidAddressVersion(ref e) => - write_err!(f, "decoded base58 data contained an invalid address version btye"; e), + write_err!(f, "decoded base58 data contained an invalid address version byte"; e), Secp256k1(ref e) => write_err!(f, "private key validation failed"; e), InvalidWifCompressionFlag(ref e) => write_err!(f, "invalid WIF compression flag";e), } diff --git a/hashes/src/macros.rs b/hashes/src/macros.rs index 9ff537154..070b72728 100644 --- a/hashes/src/macros.rs +++ b/hashes/src/macros.rs @@ -193,7 +193,7 @@ macro_rules! hash_newtype { }; } -/// Implements string functions using hex for a new type crated with [`crate::hash_newtype`] macro. +/// Implements string functions using hex for a new type created with [`crate::hash_newtype`] macro. /// /// Implements: /// @@ -210,7 +210,7 @@ macro_rules! impl_hex_for_newtype { } } -/// Implements `fmt::Debug` using hex for a new type crated with [`crate::hash_newtype`] macro. +/// Implements `fmt::Debug` using hex for a new type created with [`crate::hash_newtype`] macro. /// /// This is provided in case you do not want to use the `hex` feature. #[macro_export]