From 37f0d543604b41254c466f3b3ddd3b16b42f560c Mon Sep 17 00:00:00 2001 From: zoupingshi Date: Sat, 8 Feb 2025 14:39:56 +0800 Subject: [PATCH] chore: fix some typos Signed-off-by: zoupingshi --- lianad/src/bitcoin/d/mod.rs | 2 +- lianad/src/commands/mod.rs | 2 +- lianad/src/database/sqlite/mod.rs | 8 ++++---- lianad/src/database/sqlite/schema.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lianad/src/bitcoin/d/mod.rs b/lianad/src/bitcoin/d/mod.rs index d73209968..887192ba5 100644 --- a/lianad/src/bitcoin/d/mod.rs +++ b/lianad/src/bitcoin/d/mod.rs @@ -1604,7 +1604,7 @@ mod tests { SyncProgress::new(1.0, 1_000, 999).rounded_up_progress(), 0.9999 ); - // approximatively year 2198 + // approximately year 2198 assert_eq!( SyncProgress::new(1.0, 9999999, 9999998).rounded_up_progress(), 0.9999 diff --git a/lianad/src/commands/mod.rs b/lianad/src/commands/mod.rs index dec64a3a4..6f04f1ed6 100644 --- a/lianad/src/commands/mod.rs +++ b/lianad/src/commands/mod.rs @@ -1045,7 +1045,7 @@ impl DaemonControl { Ok(()) } - /// list_confirmed_transactions retrieves a limited list of transactions which occured between two given dates. + /// list_confirmed_transactions retrieves a limited list of transactions which occurred between two given dates. pub fn list_confirmed_transactions( &self, start: u32, diff --git a/lianad/src/database/sqlite/mod.rs b/lianad/src/database/sqlite/mod.rs index c54df4dae..5ec1462ea 100644 --- a/lianad/src/database/sqlite/mod.rs +++ b/lianad/src/database/sqlite/mod.rs @@ -142,7 +142,7 @@ pub struct SqliteDb { } impl SqliteDb { - /// Instanciate an SQLite database either from an existing database file or by creating a fresh + /// Instantiate an SQLite database either from an existing database file or by creating a fresh /// one. /// NOTE: don't forget to apply any migration with `maybe_apply_migration` if necessary. pub fn new( @@ -984,7 +984,7 @@ CREATE TABLE tip ( * now (and the foreseeable future). * * The 'timestamp' field is the creation date of the wallet. We guarantee to have seen all - * information related to our descriptor(s) that occured after this date. + * information related to our descriptor(s) that occurred after this date. * The optional 'rescan_timestamp' field is a the timestamp we need to rescan the chain * for events related to our descriptor(s) from. */ @@ -1054,7 +1054,7 @@ CREATE TABLE tip ( * now (and the foreseeable future). * * The 'timestamp' field is the creation date of the wallet. We guarantee to have seen all - * information related to our descriptor(s) that occured after this date. + * information related to our descriptor(s) that occurred after this date. * The optional 'rescan_timestamp' field is a the timestamp we need to rescan the chain * for events related to our descriptor(s) from. */ @@ -1140,7 +1140,7 @@ CREATE TABLE tip ( * now (and the foreseeable future). * * The 'timestamp' field is the creation date of the wallet. We guarantee to have seen all - * information related to our descriptor(s) that occured after this date. + * information related to our descriptor(s) that occurred after this date. * The optional 'rescan_timestamp' field is a the timestamp we need to rescan the chain * for events related to our descriptor(s) from. */ diff --git a/lianad/src/database/sqlite/schema.rs b/lianad/src/database/sqlite/schema.rs index 0b67675f2..1e6a76101 100644 --- a/lianad/src/database/sqlite/schema.rs +++ b/lianad/src/database/sqlite/schema.rs @@ -25,7 +25,7 @@ CREATE TABLE tip ( * now (and the foreseeable future). * * The 'timestamp' field is the creation date of the wallet. We guarantee to have seen all - * information related to our descriptor(s) that occured after this date. + * information related to our descriptor(s) that occurred after this date. * The optional 'rescan_timestamp' field is a the timestamp we need to rescan the chain * for events related to our descriptor(s) from. */