Skip to content

Commit e304695

Browse files
committed
Merge rust-bitcoin#5151: chore: remove extra spaces in the comment
ba9aa86 chore: remove extra spaces in the comment (spuradage) Pull request description: remove extra spaces in the comment ACKs for top commit: apoelstra: ACK ba9aa86; successfully ran local tests; sure Tree-SHA512: ee45c7bae269f5fed2e7b3d7931af7e61507b07f1740560a7a3b61473cd5c334fa0831dacad3ff37425534db714547324e0b625812ef9658fbbf8809cb602f12
2 parents 8cba676 + ba9aa86 commit e304695

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bitcoin/examples/sighash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn compute_sighash_legacy(raw_tx: &[u8], inp_idx: usize, script_pubkey_bytes_opt
8686
"first in ScriptSig must be PUSHBYTES_0 got {pushbytes_0:?}"
8787
);
8888

89-
//All other scriptSig instructions must be signatures
89+
//All other scriptSig instructions must be signatures
9090
for instr in instructions {
9191
let sig = ecdsa::Signature::from_slice(instr.unwrap().push_bytes().unwrap().as_bytes())
9292
.expect("failed to parse sig");

bitcoin/src/crypto/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ pub type UntweakedKeypair = Keypair;
884884
/// # let keypair = TweakedKeypair::dangerous_assume_tweaked(Keypair::new(&secp, &mut rand::thread_rng()));
885885
/// // There are various conversion methods available to get a tweaked pubkey from a tweaked keypair.
886886
/// let (_pk, _parity) = keypair.public_parts();
887-
/// let _pk = TweakedPublicKey::from_keypair(keypair);
887+
/// let _pk = TweakedPublicKey::from_keypair(keypair);
888888
/// let _pk = TweakedPublicKey::from(keypair);
889889
/// # }
890890
/// ```

bitcoin/src/taproot/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ impl fmt::Display for InvalidControlBlockSizeError {
16781678
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16791679
write!(
16801680
f,
1681-
"Control Block size({}) must be of the form 33 + 32*m where 0 <= m <= {} ",
1681+
"Control Block size({}) must be of the form 33 + 32*m where 0 <= m <= {} ",
16821682
self.0, TAPROOT_CONTROL_MAX_NODE_COUNT
16831683
)
16841684
}

0 commit comments

Comments
 (0)