bitcoin: fix typos

This commit is contained in:
Thabokani 2024-01-18 14:06:23 +08:00
parent fa716fb638
commit 80665671cd
No known key found for this signature in database
GPG Key ID: 2AB9CDE56F6D8990
4 changed files with 4 additions and 4 deletions

View File

@ -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<String> = env::args().collect();
if args.len() < 2 {

View File

@ -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,

View File

@ -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,

View File

@ -223,7 +223,7 @@ mod into_iter {
#[inline]
fn nth(&mut self, n: usize) -> Option<Self::Item> {
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 {