chore: remove extra spaces in the comment
What changed, and why it matters
This commit only removes extra spaces inside comments and a user-facing error message string. It does not change any executable code, logic, or behavior. There is no security relevance.
No action needed; this is a cosmetic documentation/style change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a pure whitespace cleanup: two comment lines and one format string in an error display had double spaces removed. No Rust code, types, APIs, or control flow were modified. The compiled output is functionally identical except for the exact text of one error message.
Changed components
Inspect captured patch +3 / −3
diff --git a/bitcoin/examples/sighash.rs b/bitcoin/examples/sighash.rs
index 2bfbd740..0c932560 100644
--- a/bitcoin/examples/sighash.rs
+++ b/bitcoin/examples/sighash.rs
@@ -86,7 +86,7 @@ fn compute_sighash_legacy(raw_tx: &[u8], inp_idx: usize, script_pubkey_bytes_opt
"first in ScriptSig must be PUSHBYTES_0 got {pushbytes_0:?}"
);
- //All other scriptSig instructions must be signatures
+ //All other scriptSig instructions must be signatures
for instr in instructions {
let sig = ecdsa::Signature::from_slice(instr.unwrap().push_bytes().unwrap().as_bytes())
.expect("failed to parse sig");
diff --git a/bitcoin/src/crypto/key.rs b/bitcoin/src/crypto/key.rs
index f995149c..dec67a29 100644
--- a/bitcoin/src/crypto/key.rs
+++ b/bitcoin/src/crypto/key.rs
@@ -884,7 +884,7 @@ pub type UntweakedKeypair = Keypair;
/// # let keypair = TweakedKeypair::dangerous_assume_tweaked(Keypair::new(&secp, &mut rand::thread_rng()));
/// // There are various conversion methods available to get a tweaked pubkey from a tweaked keypair.
/// let (_pk, _parity) = keypair.public_parts();
-/// let _pk = TweakedPublicKey::from_keypair(keypair);
+/// let _pk = TweakedPublicKey::from_keypair(keypair);
/// let _pk = TweakedPublicKey::from(keypair);
/// # }
/// ```
diff --git a/bitcoin/src/taproot/mod.rs b/bitcoin/src/taproot/mod.rs
index 9a3be928..11d4b5bc 100644
--- a/bitcoin/src/taproot/mod.rs
+++ b/bitcoin/src/taproot/mod.rs
@@ -1678,7 +1678,7 @@ impl fmt::Display for InvalidControlBlockSizeError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
- "Control Block size({}) must be of the form 33 + 32*m where 0 <= m <= {} ",
+ "Control Block size({}) must be of the form 33 + 32*m where 0 <= m <= {} ",
self.0, TAPROOT_CONTROL_MAX_NODE_COUNT
)
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.