Skip to content

Commit ee8e836

Browse files
committed
Merge rust-bitcoin#5118: docs: fix grammatical issues in code comments
865417d docs: fix grammatical issues in code comments (radik878) Pull request description: Corrected some moments in code comments 1) an code -> a code 2) script_p2sh_p2p2k_template -> script_p2sh_p2pkh_template (p2p2k -> p2pkh) 3) And looking at other similar examples i thought there should be a whitespace between ';' and e ACKs for top commit: apoelstra: ACK 865417d; successfully ran local tests Tree-SHA512: 4b17e1b71eb0cb57b1dc44b97bfcffc36c110f336631408f93f2cb8afaccf3ce2ea9625adba8d6da4fa10d396c75fde54efebfc8fd59daf5db20d896dc08601b
2 parents a80db08 + 865417d commit ee8e836

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bitcoin/src/blockdata/script/push_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::script;
99

1010
#[rustfmt::skip] // Keep public re-exports separate.
1111
#[doc(inline)]
12-
// This is not the usual re-export, `primitive` here is an code audit thing.
12+
// This is not the usual re-export, `primitive` here is a code audit thing.
1313
pub use self::primitive::{PushBytes, PushBytesBuf};
1414

1515
/// This module only contains required operations so that outside functions wouldn't accidentally

bitcoin/src/blockdata/script/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ fn script_buf_collect() {
623623
}
624624

625625
#[test]
626-
fn script_p2sh_p2p2k_template() {
626+
fn script_p2sh_p2pkh_template() {
627627
// random outputs I picked out of the mempool
628628
assert!(ScriptPubKeyBuf::from_hex_no_length_prefix(
629629
"76a91402306a7c23f3e8010de41e9e591348bb83f11daa88ac"

bitcoin/src/crypto/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ impl fmt::Display for FromWifError {
11441144
InvalidAddressVersion(ref e) =>
11451145
write_err!(f, "decoded base58 data contained an invalid address version byte"; e),
11461146
Secp256k1(ref e) => write_err!(f, "private key validation failed"; e),
1147-
InvalidWifCompressionFlag(ref e) => write_err!(f, "invalid WIF compression flag";e),
1147+
InvalidWifCompressionFlag(ref e) => write_err!(f, "invalid WIF compression flag"; e),
11481148
}
11491149
}
11501150
}

0 commit comments

Comments
 (0)