From 9c8159199ede50b34b404a70913df190bc740b4d Mon Sep 17 00:00:00 2001 From: Data Retriever <100052557+data-retriever@users.noreply.github.com> Date: Sun, 21 Jul 2024 01:23:55 +0000 Subject: [PATCH] Fixed typos --- src/descriptor/key.rs | 2 +- src/descriptor/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/descriptor/key.rs b/src/descriptor/key.rs index 79818465e..0ca62fc9f 100644 --- a/src/descriptor/key.rs +++ b/src/descriptor/key.rs @@ -390,7 +390,7 @@ fn fmt_derivation_path(f: &mut fmt::Formatter, path: &bip32::DerivationPath) -> } /// Writes multiple derivation paths to the formatter, no leading 'm'. -/// NOTE: we assume paths only differ at a sindle index, as prescribed by BIP389. +/// NOTE: we assume paths only differ at a single index, as prescribed by BIP389. /// Will panic if the list of paths is empty. fn fmt_derivation_paths(f: &mut fmt::Formatter, paths: &[bip32::DerivationPath]) -> fmt::Result { for (i, child) in paths[0].into_iter().enumerate() { diff --git a/src/descriptor/mod.rs b/src/descriptor/mod.rs index a38dac154..0b0bd02b6 100644 --- a/src/descriptor/mod.rs +++ b/src/descriptor/mod.rs @@ -644,7 +644,7 @@ impl Descriptor { /// # assert_eq!(descriptor.derived_descriptor(&secp, index).unwrap(), derived_descriptor); /// ``` /// - /// and is only here really here for backwards compatbility. + /// and is only here really here for backwards compatibility. /// See [`at_derivation_index`] and `[derived_descriptor`] for more documentation. /// /// [`at_derivation_index`]: Self::at_derivation_index