What changed, and why it matters
This commit only fixes spelling mistakes in comments and documentation strings. No code behavior was changed, so it has no security impact.
No action needed; this is a cosmetic documentation-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff changes four lines across three files, all of which are typo corrections inside comments or doc comments: ‘a invalid’ → ‘an invalid’, ‘fingreprint’ → ‘fingerprint’, ‘TaprootMerkelBranch’ → ‘TaprootMerkleBranch’, and ‘a empty’ → ‘an empty’. There are no functional code changes.
Changed components
Inspect captured patch +4 / −4
diff --git a/bitcoin/src/psbt/map/input.rs b/bitcoin/src/psbt/map/input.rs
index f0f2f006..4ee4f3fb 100644
--- a/bitcoin/src/psbt/map/input.rs
+++ b/bitcoin/src/psbt/map/input.rs
@@ -250,7 +250,7 @@ impl Input {
///
/// # Errors
///
- /// If the `sighash_type` field is set to a invalid Taproot sighash value.
+ /// If the `sighash_type` field is set to an invalid Taproot sighash value.
pub fn taproot_hash_ty(&self) -> Result<TapSighashType, InvalidSighashTypeError> {
self.sighash_type
.map(|sighash_type| sighash_type.taproot_hash_ty())
diff --git a/bitcoin/src/psbt/mod.rs b/bitcoin/src/psbt/mod.rs
index b28ae4c1..91e13a72 100644
--- a/bitcoin/src/psbt/mod.rs
+++ b/bitcoin/src/psbt/mod.rs
@@ -2632,7 +2632,7 @@ mod tests {
let (priv_key, pk, secp) = gen_keys();
// key_map implements `GetKey` using KeyRequest::Pubkey. A pubkey key request does not use
- // keysource so we use default `KeySource` (fingreprint and derivation path) below.
+ // keysource so we use default `KeySource` (fingerprint and derivation path) below.
let mut key_map = BTreeMap::new();
key_map.insert(pk, priv_key);
diff --git a/bitcoin/src/taproot/mod.rs b/bitcoin/src/taproot/mod.rs
index 0fd0abfe..9a3be928 100644
--- a/bitcoin/src/taproot/mod.rs
+++ b/bitcoin/src/taproot/mod.rs
@@ -610,7 +610,7 @@ impl TaprootBuilder {
/// Inserts a leaf at `depth`.
fn insert(mut self, mut node: NodeInfo, mut depth: u8) -> Result<Self, TaprootBuilderError> {
// early error on invalid depth. Though this will be checked later
- // while constructing TaprootMerkelBranch
+ // while constructing TaprootMerkleBranch
if depth as usize > TAPROOT_CONTROL_MAX_NODE_COUNT {
return Err(InvalidMerkleTreeDepthError(depth as usize).into());
}
@@ -1473,7 +1473,7 @@ pub enum TaprootBuilderError {
NodeNotInDfsOrder,
/// Two nodes at depth 0 are not allowed.
OverCompleteTree,
- /// Called finalize on a empty tree.
+ /// Called finalize on an empty tree.
EmptyTree,
}
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.