From f0447e1bee03abe3a12de78106a042d5923fc796 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 14 Jan 2026 12:48:07 +0100 Subject: [PATCH] Fix typos in comments and documentation - Fix "the the" -> "the" in event.rs - Fix "to to" -> "to" in builder.rs, ffi/types.rs, and migrations.rs - Fix "openend" -> "opened" in ffi/types.rs - Fix "unnannounced" -> "unannounced" in builder.rs Co-Authored-By: HAL 9000 --- src/builder.rs | 4 ++-- src/event.rs | 2 +- src/ffi/types.rs | 4 ++-- src/io/sqlite_store/migrations.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 08ac123fa..0c8df2aa3 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -1352,11 +1352,11 @@ fn build_with_store_internal( let mut user_config = default_user_config(&config); if liquidity_source_config.and_then(|lsc| lsc.lsps2_service.as_ref()).is_some() { - // If we act as an LSPS2 service, we need to to be able to intercept HTLCs and forward the + // If we act as an LSPS2 service, we need to be able to intercept HTLCs and forward the // information to the service handler. user_config.accept_intercept_htlcs = true; - // If we act as an LSPS2 service, we allow forwarding to unnannounced channels. + // If we act as an LSPS2 service, we allow forwarding to unannounced channels. user_config.accept_forwards_to_priv_channels = true; // If we act as an LSPS2 service, set the HTLC-value-in-flight to 100% of the channel value diff --git a/src/event.rs b/src/event.rs index 75270bf53..6f0ed8e09 100644 --- a/src/event.rs +++ b/src/event.rs @@ -165,7 +165,7 @@ pub enum Event { /// /// This needs to be manually claimed by supplying the correct preimage to [`claim_for_hash`]. /// - /// If the the provided parameters don't match the expectations or the preimage can't be + /// If the provided parameters don't match the expectations or the preimage can't be /// retrieved in time, should be failed-back via [`fail_for_hash`]. /// /// Note claiming will necessarily fail after the `claim_deadline` has been reached. diff --git a/src/ffi/types.rs b/src/ffi/types.rs index a5ff8372f..033f0387d 100644 --- a/src/ffi/types.rs +++ b/src/ffi/types.rs @@ -1169,9 +1169,9 @@ pub struct LSPS1OnchainPaymentInfo { pub expires_at: LSPSDateTime, /// The total fee the LSP will charge to open this channel in satoshi. pub fee_total_sat: u64, - /// The amount the client needs to pay to have the requested channel openend. + /// The amount the client needs to pay to have the requested channel opened. pub order_total_sat: u64, - /// An on-chain address the client can send [`Self::order_total_sat`] to to have the channel + /// An on-chain address the client can send [`Self::order_total_sat`] to have the channel /// opened. pub address: bitcoin::Address, /// The minimum number of block confirmations that are required for the on-chain payment to be diff --git a/src/io/sqlite_store/migrations.rs b/src/io/sqlite_store/migrations.rs index abfbdf6ef..ea809be08 100644 --- a/src/io/sqlite_store/migrations.rs +++ b/src/io/sqlite_store/migrations.rs @@ -124,7 +124,7 @@ mod tests { connection.execute(&sql, []).unwrap(); - // We write some data to to the table + // We write some data to the table let sql = format!( "INSERT OR REPLACE INTO {} (namespace, key, value) VALUES (:namespace, :key, :value);", kv_table_name