Skip to content

Commit 5057eae

Browse files
authored
Fixed typos in connection.rs and database\builder.rs (#2117)
Fix typos in comments.
2 parents 9f1cc50 + 51ded0a commit 5057eae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libsql/src/connection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl Connection {
137137
///
138138
/// # Return
139139
///
140-
/// This returns a `BatchRows` currently only the `remote` and `local` connection supports this feature and
140+
/// This returns a `BatchRows` currently only the `remote` and `local` connection supports this feature and
141141
/// all other connection types will return an empty set always.
142142
pub async fn execute_batch(&self, sql: &str) -> Result<BatchRows> {
143143
tracing::trace!("executing batch `{}`", sql);
@@ -206,7 +206,7 @@ impl Connection {
206206
self.conn.busy_timeout(timeout)
207207
}
208208

209-
/// Check weather libsql is in `autocommit` or not.
209+
/// Check whether libsql is in `autocommit` or not.
210210
pub fn is_autocommit(&self) -> bool {
211211
self.conn.is_autocommit()
212212
}

libsql/src/database/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub use crate::database::EncryptionContext;
2525
///
2626
/// # Note
2727
///
28-
/// Embedded replica's require a clean database (no database file) or a previously synced database or else it will
28+
/// Embedded replicas require a clean database (no database file) or a previously synced database or else it will
2929
/// throw an error to prevent any misuse. To work around this error a user can delete the database
3030
/// and let it resync and create the wal_index metadata file.
3131
pub struct Builder<T = ()> {
@@ -276,7 +276,7 @@ cfg_replication! {
276276
self
277277
}
278278

279-
/// Set weather you want writes to be visible locally before the write query returns. This
279+
/// Set whether you want writes to be visible locally before the write query returns. This
280280
/// means that you will be able to read your own writes if this is set to `true`.
281281
///
282282
/// # Default
@@ -333,7 +333,7 @@ cfg_replication! {
333333
self
334334
}
335335

336-
/// Skip the saftey assert used to ensure that sqlite3 is configured correctly for the way
336+
/// Skip the safety assert used to ensure that sqlite3 is configured correctly for the way
337337
/// that libsql uses the ffi code. By default, libsql will try to use the SERIALIZED
338338
/// threadsafe mode for sqlite3. This allows us to implement Send/Sync for all the types to
339339
/// allow them to move between threads safely. Due to the fact that sqlite3 has a global

0 commit comments

Comments
 (0)