From 6e4fc4c012e1800ec1bc9c9c2691882da6951aed Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Sat, 2 Mar 2024 10:27:19 -0800 Subject: [PATCH] minor: Fix `double` API doc typo --- crates/iceberg/src/spec/datatypes.rs | 6 +++--- crates/iceberg/src/spec/values.rs | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/iceberg/src/spec/datatypes.rs b/crates/iceberg/src/spec/datatypes.rs index 172cb6417..636f14e3e 100644 --- a/crates/iceberg/src/spec/datatypes.rs +++ b/crates/iceberg/src/spec/datatypes.rs @@ -171,13 +171,13 @@ pub enum PrimitiveType { Int, /// 64-bit signed integer Long, - /// 32-bit IEEE 754 floating bit. + /// 32-bit IEEE 754 floating point. Float, - /// 64-bit IEEE 754 floating bit. + /// 64-bit IEEE 754 floating point. Double, /// Fixed point decimal Decimal { - /// Precision + /// Precision, must be 38 or less precision: u32, /// Scale scale: u32, diff --git a/crates/iceberg/src/spec/values.rs b/crates/iceberg/src/spec/values.rs index 688bce41c..f202914e3 100644 --- a/crates/iceberg/src/spec/values.rs +++ b/crates/iceberg/src/spec/values.rs @@ -228,7 +228,7 @@ impl Datum { } } - /// Creates an 32bit floating point number. + /// Creates an 64bit floating point number. /// /// Example: /// ```rust @@ -265,7 +265,7 @@ impl Datum { } } - /// Creates a date in `%Y-%m-%d` format, assume in utc timezone. + /// Creates date literal in `%Y-%m-%d` format, assume in utc timezone. /// /// See [`NaiveDate::from_str`]. /// @@ -289,7 +289,7 @@ impl Datum { Ok(Self::date(date_from_naive_date(t))) } - /// Create a date from calendar date (year, month and day). + /// Create date literal from calendar date (year, month and day). /// /// See [`NaiveDate::from_ymd_opt`]. /// @@ -313,9 +313,9 @@ impl Datum { Ok(Self::date(date_from_naive_date(t))) } - /// Creates time in microseconds directly. + /// Creates time literal in microseconds directly. /// - /// It will returns error when it's negative or too large to fit in 24 hours. + /// It will return error when it's negative or too large to fit in 24 hours. /// /// Example: /// @@ -364,7 +364,7 @@ impl Datum { } } - /// Creates time in microseconds in `%H:%M:%S:.f` format. + /// Creates time literal in microseconds in `%H:%M:%S:.f` format. /// /// See [`NaiveTime::from_str`] for details. ///