Skip to content

Commit 7f8103d

Browse files
Fix typos in comments
1 parent b9fc061 commit 7f8103d

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

src/blockchain/compact_filters/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ impl ChainStore<Full> {
398398
);
399399
}
400400

401-
// Delete full blocks overriden by snapshot
401+
// Delete full blocks overridden by snapshot
402402
let from_key = StoreEntry::Block(Some(snaphost.min_height)).get_key();
403403
let to_key = StoreEntry::Block(Some(usize::MAX)).get_key();
404404
batch.delete_range(&from_key, &to_key);

src/database/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn after(key: &[u8]) -> Vec<u8> {
109109
/// Once it's dropped its content will be lost.
110110
///
111111
/// If you are looking for a permanent storage solution, you can try with the default key-value
112-
/// database called [`sled`]. See the [`database`] module documentation for more defailts.
112+
/// database called [`sled`]. See the [`database`] module documentation for more details.
113113
///
114114
/// [`database`]: crate::database
115115
#[derive(Debug, Default)]

src/database/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub trait Database: BatchOperations {
149149
fn get_raw_tx(&self, txid: &Txid) -> Result<Option<Transaction>, Error>;
150150
/// Fetch the transaction metadata and optionally also the raw transaction
151151
fn get_tx(&self, txid: &Txid, include_raw: bool) -> Result<Option<TransactionDetails>, Error>;
152-
/// Return the last defivation index for a keychain.
152+
/// Return the last derivation index for a keychain.
153153
fn get_last_index(&self, keychain: KeychainKind) -> Result<Option<u32>, Error>;
154154
/// Return the sync time, if present
155155
fn get_sync_time(&self) -> Result<Option<SyncTime>, Error>;

src/descriptor/dsl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ macro_rules! fragment_internal {
521521
// three operands it's (X, (X, (X, ()))), etc.
522522
//
523523
// To check that the right number of arguments has been passed we can "cast" those tuples to
524-
// more convenient structures like `TupleTwo`. If the conversion succedes, the right number of
524+
// more convenient structures like `TupleTwo`. If the conversion succeeds, the right number of
525525
// args was passed. Otherwise the compilation fails entirely.
526526
( @t $op:ident ( $( $args:tt )* ) $( $tail:tt )* ) => ({
527527
($crate::fragment!( $op ( $( $args )* ) ), $crate::fragment_internal!( @t $( $tail )* ))

src/descriptor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ mod test {
667667

668668
// make a descriptor out of it
669669
let desc = crate::descriptor!(wpkh(key)).unwrap();
670-
// this should conver the key that supports "any_network" to the right network (testnet)
670+
// this should convert the key that supports "any_network" to the right network (testnet)
671671
let (wallet_desc, _) = desc
672672
.into_wallet_descriptor(&secp, Network::Testnet)
673673
.unwrap();

src/descriptor/policy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ impl Satisfaction {
354354
indexes
355355
.into_iter()
356356
// .inspect(|x| println!("--- orig --- {:?}", x))
357-
// we map each of the combinations of elements into a tuple of ([choosen items], [conditions]). unfortunately, those items have potentially more than one
357+
// we map each of the combinations of elements into a tuple of ([chosen items], [conditions]). unfortunately, those items have potentially more than one
358358
// condition (think about ORs), so we also use `mix` to expand those, i.e. [[0], [1, 2]] becomes [[0, 1], [0, 2]]. This is necessary to make sure that we
359-
// consider every possibile options and check whether or not they are compatible.
359+
// consider every possible options and check whether or not they are compatible.
360360
.map(|i_vec| {
361361
mix(i_vec
362362
.iter()

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub enum Error {
115115
Hex(bitcoin::hashes::hex::Error),
116116
/// Partially signed bitcoin transaction error
117117
Psbt(bitcoin::util::psbt::Error),
118-
/// Partially signed bitcoin transaction parseerror
118+
/// Partially signed bitcoin transaction parse error
119119
PsbtParse(bitcoin::util::psbt::PsbtParseError),
120120

121121
//KeyMismatch(bitcoin::secp256k1::PublicKey, bitcoin::secp256k1::PublicKey),

src/keys/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl<Ctx: ScriptContext> From<bip32::ExtendedPrivKey> for ExtendedKey<Ctx> {
356356

357357
/// Trait for keys that can be derived.
358358
///
359-
/// When extra metadata are provided, a [`DerivableKey`] can be transofrmed into a
359+
/// When extra metadata are provided, a [`DerivableKey`] can be transformed into a
360360
/// [`DescriptorKey`]: the trait [`IntoDescriptorKey`] is automatically implemented
361361
/// for `(DerivableKey, DerivationPath)` and
362362
/// `(DerivableKey, KeySource, DerivationPath)` tuples.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ pub fn version() -> &'static str {
275275
env!("CARGO_PKG_VERSION", "unknown")
276276
}
277277

278-
// We should consider putting this under a feature flag but we need the macro in doctets so we need
278+
// We should consider putting this under a feature flag but we need the macro in doctests so we need
279279
// to wait until https://github.com/rust-lang/rust/issues/67295 is fixed.
280280
//
281281
// Stuff in here is too rough to document atm

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ pub struct TransactionDetails {
217217
/// ensure an unstrusted [`Blockchain`](crate::blockchain::Blockchain) backend can't trick the
218218
/// wallet into using an invalid tx as an RBF template.
219219
///
220-
/// The check is only perfomed when the `verify` feature is enabled.
220+
/// The check is only performed when the `verify` feature is enabled.
221221
#[serde(default = "bool::default")] // default to `false` if not specified
222222
pub verified: bool,
223223
}

0 commit comments

Comments
 (0)