diff --git a/Cargo.toml b/Cargo.toml index 49edaab..fd08180 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -117,7 +117,7 @@ lazy_static = "1.4" regex = "1.3" uuid = { version = "0.8", features = ["v4"] } unicase = "2.6.0" -# Use `bencher` over criterion becasue it builds much faster and we don't have +# Use `bencher` over criterion because it builds much faster and we don't have # many benchmarks bencher = "0.1" diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs index 820b753..ffdcf84 100644 --- a/libsqlite3-sys/build.rs +++ b/libsqlite3-sys/build.rs @@ -96,7 +96,7 @@ mod build_bundled { // Older versions of visual studio don't support c99 (including isnan), which // causes a build failure when the linker fails to find the `isnan` - // function. `sqlite` provides its own implmentation, using the fact + // function. `sqlite` provides its own implementation, using the fact // that x != x when x is NaN. // // There may be other platforms that don't support `isnan`, they should be diff --git a/src/backup.rs b/src/backup.rs index b4b1807..5205f99 100644 --- a/src/backup.rs +++ b/src/backup.rs @@ -143,7 +143,7 @@ pub enum StepResult { /// backed up. More, - /// The step failed because appropriate locks could not be aquired. This is + /// The step failed because appropriate locks could not be acquired. This is /// not a fatal error - the step can be retried. Busy, diff --git a/src/blob/mod.rs b/src/blob/mod.rs index 34febde..202f65d 100644 --- a/src/blob/mod.rs +++ b/src/blob/mod.rs @@ -54,11 +54,11 @@ //! filled in order for the call to be considered a success. //! //! The "exact" functions require the provided buffer be entirely filled, or -//! they return an error, wheras the "inexact" functions read as much out of +//! they return an error, whereas the "inexact" functions read as much out of //! the blob as is available, and return how much they were able to read. //! -//! The inexact functions are preferrable if you do not know the size of the -//! blob already, and the exact functions are preferrable if you do. +//! The inexact functions are preferable if you do not know the size of the +//! blob already, and the exact functions are preferable if you do. //! //! ### Comparison to using the `std::io` traits: //! diff --git a/src/functions.rs b/src/functions.rs index efbc651..ce908d5 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -4,7 +4,7 @@ //! //! Adding a `regexp` function to a connection in which compiled regular //! expressions are cached in a `HashMap`. For an alternative implementation -//! that uses SQLite's [Function Auxilliary Data](https://www.sqlite.org/c3ref/get_auxdata.html) interface +//! that uses SQLite's [Function Auxiliary Data](https://www.sqlite.org/c3ref/get_auxdata.html) interface //! to avoid recompiling regular expressions, see the unit tests for this //! module. //! @@ -167,7 +167,7 @@ impl Context<'_> { unsafe { ValueRef::from_value(arg) } } - /// Fetch or insert the auxilliary data associated with a particular + /// Fetch or insert the auxiliary data associated with a particular /// parameter. This is intended to be an easier-to-use way of fetching it /// compared to calling [`get_aux`](Context::get_aux) and /// [`set_aux`](Context::set_aux) separately. @@ -191,7 +191,7 @@ impl Context<'_> { } } - /// Sets the auxilliary data associated with a particular parameter. See + /// Sets the auxiliary data associated with a particular parameter. See /// `https://www.sqlite.org/c3ref/get_auxdata.html` for a discussion of /// this feature, or the unit tests of this module for an example. pub fn set_aux(&self, arg: c_int, value: T) -> Result> { @@ -210,7 +210,7 @@ impl Context<'_> { Ok(orig) } - /// Gets the auxilliary data that was associated with a given parameter via + /// Gets the auxiliary data that was associated with a given parameter via /// [`set_aux`](Context::set_aux). Returns `Ok(None)` if no data has been /// associated, and Ok(Some(v)) if it has. Returns an error if the /// requested type does not match. @@ -839,7 +839,7 @@ mod test { Ok(()) } - // This implementation of a regexp scalar function uses SQLite's auxilliary data + // This implementation of a regexp scalar function uses SQLite's auxiliary data // (https://www.sqlite.org/c3ref/get_auxdata.html) to avoid recompiling the regular // expression multiple times within one query. fn regexp_with_auxilliary(ctx: &Context<'_>) -> Result { diff --git a/src/lib.rs b/src/lib.rs index 5f96033..926cad3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -974,7 +974,7 @@ impl Default for OpenFlags { /// /// This function is unsafe because if you call it and SQLite has actually been /// configured to run in single-thread mode, -/// you may enounter memory errors or data corruption or any number of terrible +/// you may encounter memory errors or data corruption or any number of terrible /// things that should not be possible when you're using Rust. pub unsafe fn bypass_sqlite_initialization() { BYPASS_SQLITE_INIT.store(true, Ordering::Relaxed); diff --git a/src/params.rs b/src/params.rs index dc174c6..88fce97 100644 --- a/src/params.rs +++ b/src/params.rs @@ -198,7 +198,7 @@ impl Params for &[(&str, &dyn ToSql)] { macro_rules! impl_for_array_ref { ($($N:literal)+) => {$( - // These are already generic, and theres a shitload of them, so lets + // These are already generic, and there's a shedload of them, so lets // avoid the compile time hit from making them all inline for now. impl Sealed for &[&T; $N] {} impl Params for &[&T; $N] { diff --git a/src/row.rs b/src/row.rs index ef51778..8e4faac 100644 --- a/src/row.rs +++ b/src/row.rs @@ -105,7 +105,7 @@ impl Drop for Rows<'_> { } } -/// `F` is used to tranform the _streaming_ iterator into a _fallible_ iterator. +/// `F` is used to transform the _streaming_ iterator into a _fallible_ iterator. #[must_use = "iterators are lazy and do nothing unless consumed"] pub struct Map<'stmt, F> { rows: Rows<'stmt>, @@ -130,7 +130,7 @@ where /// An iterator over the mapped resulting rows of a query. /// -/// `F` is used to tranform the _streaming_ iterator into a _standard_ iterator. +/// `F` is used to transform the _streaming_ iterator into a _standard_ iterator. #[must_use = "iterators are lazy and do nothing unless consumed"] pub struct MappedRows<'stmt, F> { rows: Rows<'stmt>, diff --git a/src/statement.rs b/src/statement.rs index e1b6b83..9eddfaa 100644 --- a/src/statement.rs +++ b/src/statement.rs @@ -247,7 +247,7 @@ impl Statement<'_> { /// Executes the prepared statement and maps a function over the resulting /// rows, returning an iterator over the mapped function results. /// - /// `f` is used to tranform the _streaming_ iterator into a _standard_ + /// `f` is used to transform the _streaming_ iterator into a _standard_ /// iterator. /// /// This is equivalent to `stmt.query(params)?.mapped(f)`. @@ -310,7 +310,7 @@ impl Statement<'_> { /// most-recently bound value from a previous call to `query_named`, /// or `NULL` if they have never been bound. /// - /// `f` is used to tranform the _streaming_ iterator into a _standard_ + /// `f` is used to transform the _streaming_ iterator into a _standard_ /// iterator. /// /// ## Failure diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 72decf6..f364f1f 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -1,7 +1,7 @@ //! `feature = "vtab"` Create virtual tables. //! //! Follow these steps to create your own virtual table: -//! 1. Write implemenation of [`VTab`] and [`VTabCursor`] traits. +//! 1. Write implementation of [`VTab`] and [`VTabCursor`] traits. //! 2. Create an instance of the [`Module`] structure specialized for [`VTab`] //! impl. from step 1. //! 3. Register your [`Module`] structure using [`Connection::create_module`]. @@ -680,7 +680,7 @@ impl InnerConnection { } } -/// `feature = "vtab"` Escape double-quote (`"`) character occurences by +/// `feature = "vtab"` Escape double-quote (`"`) character occurrences by /// doubling them (`""`). pub fn escape_double_quote(identifier: &str) -> Cow<'_, str> { if identifier.contains('"') { diff --git a/src/vtab/series.rs b/src/vtab/series.rs index 80693cf..ea284a9 100644 --- a/src/vtab/series.rs +++ b/src/vtab/series.rs @@ -162,7 +162,7 @@ struct SeriesTabCursor<'vtab> { row_id: i64, /// Current value ("value") value: i64, - /// Mimimum value ("start") + /// Minimum value ("start") min_value: i64, /// Maximum value ("stop") max_value: i64,