diff --git a/bitcoin/examples/handshake.rs b/bitcoin/examples/handshake.rs index 9a3bb462..be3043a0 100644 --- a/bitcoin/examples/handshake.rs +++ b/bitcoin/examples/handshake.rs @@ -11,7 +11,7 @@ use bitcoin::secp256k1; use bitcoin::secp256k1::rand::Rng; fn main() { - // This example establishes a connection to a Bitcoin node, sends the intial + // This example establishes a connection to a Bitcoin node, sends the initial // "version" message, waits for the reply, and finally closes the connection. let args: Vec = env::args().collect(); if args.len() < 2 { diff --git a/bitcoin/src/bip152.rs b/bitcoin/src/bip152.rs index 61752610..376e9877 100644 --- a/bitcoin/src/bip152.rs +++ b/bitcoin/src/bip152.rs @@ -348,7 +348,7 @@ impl_consensus_encoding!(BlockTransactions, block_hash, transactions); impl BlockTransactions { /// Construct a [BlockTransactions] from a [BlockTransactionsRequest] and - /// the corresponsing full [Block] by providing all requested transactions. + /// the corresponding full [Block] by providing all requested transactions. pub fn from_request( request: &BlockTransactionsRequest, block: &Block, diff --git a/bitcoin/src/psbt/error.rs b/bitcoin/src/psbt/error.rs index 2ded0e26..2e41332a 100644 --- a/bitcoin/src/psbt/error.rs +++ b/bitcoin/src/psbt/error.rs @@ -58,7 +58,7 @@ pub enum Error { NonStandardSighashType(u32), /// Invalid hash when parsing slice. InvalidHash(hashes::FromSliceError), - /// The pre-image must hash to the correponding psbt hash + /// The pre-image must hash to the corresponding psbt hash InvalidPreimageHashPair { /// Hash-type hash_type: PsbtHash, diff --git a/bitcoin/src/taproot/serialized_signature.rs b/bitcoin/src/taproot/serialized_signature.rs index 845847e8..ebf9ccf4 100644 --- a/bitcoin/src/taproot/serialized_signature.rs +++ b/bitcoin/src/taproot/serialized_signature.rs @@ -223,7 +223,7 @@ mod into_iter { #[inline] fn nth(&mut self, n: usize) -> Option { if n >= self.len() { - // upholds invariant becasue the values will be equal + // upholds invariant because the values will be equal self.pos = self.signature.len(); None } else { diff --git a/hashes/src/hmac.rs b/hashes/src/hmac.rs index b196f297..32b967a5 100644 --- a/hashes/src/hmac.rs +++ b/hashes/src/hmac.rs @@ -44,7 +44,7 @@ pub struct HmacMidState { pub outer: ::MidState, } -/// Pair of underyling hash engines, used for the inner and outer hash of HMAC. +/// Pair of underlying hash engines, used for the inner and outer hash of HMAC. #[derive(Clone)] pub struct HmacEngine { iengine: T::Engine,