Skip to content

Commit f0447e1

Browse files
committed
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
1 parent 690d1f4 commit f0447e1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,11 +1352,11 @@ fn build_with_store_internal(
13521352
let mut user_config = default_user_config(&config);
13531353

13541354
if liquidity_source_config.and_then(|lsc| lsc.lsps2_service.as_ref()).is_some() {
1355-
// If we act as an LSPS2 service, we need to to be able to intercept HTLCs and forward the
1355+
// If we act as an LSPS2 service, we need to be able to intercept HTLCs and forward the
13561356
// information to the service handler.
13571357
user_config.accept_intercept_htlcs = true;
13581358

1359-
// If we act as an LSPS2 service, we allow forwarding to unnannounced channels.
1359+
// If we act as an LSPS2 service, we allow forwarding to unannounced channels.
13601360
user_config.accept_forwards_to_priv_channels = true;
13611361

13621362
// If we act as an LSPS2 service, set the HTLC-value-in-flight to 100% of the channel value

src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub enum Event {
165165
///
166166
/// This needs to be manually claimed by supplying the correct preimage to [`claim_for_hash`].
167167
///
168-
/// If the the provided parameters don't match the expectations or the preimage can't be
168+
/// If the provided parameters don't match the expectations or the preimage can't be
169169
/// retrieved in time, should be failed-back via [`fail_for_hash`].
170170
///
171171
/// Note claiming will necessarily fail after the `claim_deadline` has been reached.

src/ffi/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,9 +1169,9 @@ pub struct LSPS1OnchainPaymentInfo {
11691169
pub expires_at: LSPSDateTime,
11701170
/// The total fee the LSP will charge to open this channel in satoshi.
11711171
pub fee_total_sat: u64,
1172-
/// The amount the client needs to pay to have the requested channel openend.
1172+
/// The amount the client needs to pay to have the requested channel opened.
11731173
pub order_total_sat: u64,
1174-
/// An on-chain address the client can send [`Self::order_total_sat`] to to have the channel
1174+
/// An on-chain address the client can send [`Self::order_total_sat`] to have the channel
11751175
/// opened.
11761176
pub address: bitcoin::Address,
11771177
/// The minimum number of block confirmations that are required for the on-chain payment to be

src/io/sqlite_store/migrations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ mod tests {
124124

125125
connection.execute(&sql, []).unwrap();
126126

127-
// We write some data to to the table
127+
// We write some data to the table
128128
let sql = format!(
129129
"INSERT OR REPLACE INTO {} (namespace, key, value) VALUES (:namespace, :key, :value);",
130130
kv_table_name

0 commit comments

Comments
 (0)