Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos #1565

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lianad/src/bitcoin/d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lianad/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions lianad/src/database/sqlite/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is the V3_SCHEMA used for tests, it could be argued that it shouldn't be modified in any way so that it exactly matches the schema used in that version, but I think updating the comment is fine as it won't affect the tests.

* The optional 'rescan_timestamp' field is a the timestamp we need to rescan the chain
* for events related to our descriptor(s) from.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion lianad/src/database/sqlite/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Loading