Skip to content

Commit 39afe9f

Browse files
committed
Merge rust-bitcoin#5133: chore: fix typos in code comments
94498e0 chore: fix typos (Galoretka) Pull request description: a invalid -> an invalid a empty -> an empty TaprootMerkelBranch -> TaprootMerkleBranch fingreprint -> fingerprint ACKs for top commit: apoelstra: ACK 94498e0; successfully ran local tests tcharding: ACK 94498e0 Tree-SHA512: a1919d6968113bcf59e0e6f170264a7132b477e168ced63eb83f4f5f2ecb95268f8406a42b147c7ee40fe07ce0046e36dc5696b948c5f3227c3c3e00bcbc797f
2 parents 1a82c1f + 94498e0 commit 39afe9f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bitcoin/src/psbt/map/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ impl Input {
250250
///
251251
/// # Errors
252252
///
253-
/// If the `sighash_type` field is set to a invalid Taproot sighash value.
253+
/// If the `sighash_type` field is set to an invalid Taproot sighash value.
254254
pub fn taproot_hash_ty(&self) -> Result<TapSighashType, InvalidSighashTypeError> {
255255
self.sighash_type
256256
.map(|sighash_type| sighash_type.taproot_hash_ty())

bitcoin/src/psbt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2632,7 +2632,7 @@ mod tests {
26322632
let (priv_key, pk, secp) = gen_keys();
26332633

26342634
// key_map implements `GetKey` using KeyRequest::Pubkey. A pubkey key request does not use
2635-
// keysource so we use default `KeySource` (fingreprint and derivation path) below.
2635+
// keysource so we use default `KeySource` (fingerprint and derivation path) below.
26362636
let mut key_map = BTreeMap::new();
26372637
key_map.insert(pk, priv_key);
26382638

bitcoin/src/taproot/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ impl TaprootBuilder {
610610
/// Inserts a leaf at `depth`.
611611
fn insert(mut self, mut node: NodeInfo, mut depth: u8) -> Result<Self, TaprootBuilderError> {
612612
// early error on invalid depth. Though this will be checked later
613-
// while constructing TaprootMerkelBranch
613+
// while constructing TaprootMerkleBranch
614614
if depth as usize > TAPROOT_CONTROL_MAX_NODE_COUNT {
615615
return Err(InvalidMerkleTreeDepthError(depth as usize).into());
616616
}
@@ -1473,7 +1473,7 @@ pub enum TaprootBuilderError {
14731473
NodeNotInDfsOrder,
14741474
/// Two nodes at depth 0 are not allowed.
14751475
OverCompleteTree,
1476-
/// Called finalize on a empty tree.
1476+
/// Called finalize on an empty tree.
14771477
EmptyTree,
14781478
}
14791479

0 commit comments

Comments
 (0)