From f144f2950a74e95ec5eb9b7c14724bf92758cd81 Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Mon, 18 Mar 2024 09:49:16 -0700 Subject: [PATCH] Fix spelling in doc comments (#274) --- libduckdb-sys/build.rs | 2 +- src/error.rs | 2 +- src/types/value.rs | 2 +- src/types/value_ref.rs | 8 ++++---- src/vtab/excel.rs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libduckdb-sys/build.rs b/libduckdb-sys/build.rs index 183007b0..92031acb 100644 --- a/libduckdb-sys/build.rs +++ b/libduckdb-sys/build.rs @@ -7,7 +7,7 @@ mod openssl; /// `cfg!(windows)`, since the latter does not properly handle cross-compilation /// /// Note that there is no way to know at compile-time which system we'll be -/// targetting, and this test must be made at run-time (of the build script) See +/// targeting, and this test must be made at run-time (of the build script) See /// https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts #[allow(dead_code)] fn win_target() -> bool { diff --git a/src/error.rs b/src/error.rs index 2e6901c9..58c73835 100644 --- a/src/error.rs +++ b/src/error.rs @@ -81,7 +81,7 @@ pub enum Error { /// given, the 2nd is how many were expected. InvalidParameterCount(usize, usize), - /// Apppend Error + /// Append Error AppendError, } diff --git a/src/types/value.rs b/src/types/value.rs index 9fb61801..f3cf1f7f 100644 --- a/src/types/value.rs +++ b/src/types/value.rs @@ -36,7 +36,7 @@ pub enum Value { Double(f64), /// The value is a Decimal. Decimal(Decimal), - /// The value is a timestap. + /// The value is a timestamp. Timestamp(TimeUnit, i64), /// The value is a text string. Text(String), diff --git a/src/types/value_ref.rs b/src/types/value_ref.rs index d3db9df4..f071dc3b 100644 --- a/src/types/value_ref.rs +++ b/src/types/value_ref.rs @@ -39,11 +39,11 @@ pub enum ValueRef<'a> { HugeInt(i128), /// The value is a unsigned tiny integer. UTinyInt(u8), - /// The value is a usigned small integer. + /// The value is a unsigned small integer. USmallInt(u16), - /// The value is a usigned integer. + /// The value is a unsigned integer. UInt(u32), - /// The value is a usigned big integer. + /// The value is a unsigned big integer. UBigInt(u64), /// The value is a f32. Float(f32), @@ -51,7 +51,7 @@ pub enum ValueRef<'a> { Double(f64), /// The value is a decimal Decimal(Decimal), - /// The value is a timestap. + /// The value is a timestamp. Timestamp(TimeUnit, i64), /// The value is a text string. Text(&'a [u8]), diff --git a/src/vtab/excel.rs b/src/vtab/excel.rs index db4a88ae..b70d2e6a 100644 --- a/src/vtab/excel.rs +++ b/src/vtab/excel.rs @@ -110,7 +110,7 @@ impl VTab for ExcelVTab { ); } _ => { - panic!("Shouldn't happend"); + panic!("Shouldn't happen"); } } }