Merge rust-bitcoin/rust-bitcoin#4214: Fix some comments
2aac5a1f81
Fix some comments (NinaLua) Pull request description: I fixed some typos in the comments, please review it. ACKs for top commit: Kixunil: ACK2aac5a1f81
apoelstra: ACK 2aac5a1f81a9bb217c4dfb7e45b96188ea60e35b; successfully ran local tests Tree-SHA512: 50a55451b166189e8ca3d2725ed7bb8ff95a8f1ebef0296c0003414871f1b211e6ffcc3b7225302dd3d6760bfc3f65cf8ed730327ceab60cd55b868ccb0cea9a
This commit is contained in:
commit
eee3505d2b
|
@ -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>,
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
}
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue