Skip to content

Commit 865417d

Browse files
committed
docs: fix grammatical issues in code comments
1 parent a80db08 commit 865417d

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)