]> Untitled Git - bdk/commitdiff
fix: typos
authorJose Storopoli <jose@storopoli.io>
Tue, 30 Jul 2024 16:35:23 +0000 (13:35 -0300)
committerJose Storopoli <jose@storopoli.io>
Tue, 30 Jul 2024 16:35:23 +0000 (13:35 -0300)
Needed for the typos nix check in #1320.

crates/chain/src/persist.rs
crates/wallet/src/wallet/params.rs
crates/wallet/src/wallet/persisted.rs

index 6bcdb6bdfd9e3a76bf7fd3c40c8085cf1767e63c..2ec88f63629ac406e5e4888acd35d73ac9447539 100644 (file)
@@ -107,7 +107,7 @@ impl<T> Persisted<T> {
         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>(
         db: &mut Db,
         params: T::LoadParams,
index 563082a1c854cdbb3fdd51317ef2b5b0895d32e0..44d0d1db13fecbc39551abe960b72cb26c15c7bd 100644 (file)
@@ -150,7 +150,7 @@ impl LoadParams {
     }
 
     /// Checks that `descriptor` of `keychain` matches this, and extracts private keys (if
-    /// avaliable).
+    /// available).
     pub fn descriptors<D>(mut self, descriptor: D, change_descriptor: D) -> Self
     where
         D: IntoWalletDescriptor + 'static,
index 3ba62cd651b5e02839159edbae957331be681fe7..cc9f267f4348f1cc7494ece5c6f99b1b10b98ca0 100644 (file)
@@ -154,7 +154,7 @@ impl<E: fmt::Debug + fmt::Display> std::error::Error for LoadWithPersistError<E>
 pub enum CreateWithPersistError<E> {
     /// Error from persistence.
     Persist(E),
-    /// Occurs when the loaded changeset cannot contruct [`Wallet`].
+    /// Occurs when the loaded changeset cannot construct [`Wallet`].
     Descriptor(DescriptorError),
 }