From a8efeaa0fb83848a04e7324311ccaca4e2c4ab71 Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Tue, 30 Jul 2024 13:35:23 -0300 Subject: [PATCH] fix: typos Needed for the typos nix check in #1320. --- crates/chain/src/persist.rs | 2 +- crates/wallet/src/wallet/params.rs | 2 +- crates/wallet/src/wallet/persisted.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/chain/src/persist.rs b/crates/chain/src/persist.rs index 6bcdb6bd..2ec88f63 100644 --- a/crates/chain/src/persist.rs +++ b/crates/chain/src/persist.rs @@ -107,7 +107,7 @@ impl Persisted { Ok(T::load(db, params)?.map(|inner| Self { inner })) } - /// Contruct a persisted `T` from an async `Db`. + /// Construct a persisted `T` from an async `Db`. pub async fn load_async( db: &mut Db, params: T::LoadParams, diff --git a/crates/wallet/src/wallet/params.rs b/crates/wallet/src/wallet/params.rs index 563082a1..44d0d1db 100644 --- a/crates/wallet/src/wallet/params.rs +++ b/crates/wallet/src/wallet/params.rs @@ -150,7 +150,7 @@ impl LoadParams { } /// Checks that `descriptor` of `keychain` matches this, and extracts private keys (if - /// avaliable). + /// available). pub fn descriptors(mut self, descriptor: D, change_descriptor: D) -> Self where D: IntoWalletDescriptor + 'static, diff --git a/crates/wallet/src/wallet/persisted.rs b/crates/wallet/src/wallet/persisted.rs index 3ba62cd6..cc9f267f 100644 --- a/crates/wallet/src/wallet/persisted.rs +++ b/crates/wallet/src/wallet/persisted.rs @@ -154,7 +154,7 @@ impl std::error::Error for LoadWithPersistError pub enum CreateWithPersistError { /// Error from persistence. Persist(E), - /// Occurs when the loaded changeset cannot contruct [`Wallet`]. + /// Occurs when the loaded changeset cannot construct [`Wallet`]. Descriptor(DescriptorError), }