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