Skip to content

Commit b248fd6

Browse files
authored
minor: Fix double API doc typo (#226)
1 parent cbf2873 commit b248fd6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

crates/iceberg/src/spec/datatypes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ pub enum PrimitiveType {
171171
Int,
172172
/// 64-bit signed integer
173173
Long,
174-
/// 32-bit IEEE 754 floating bit.
174+
/// 32-bit IEEE 754 floating point.
175175
Float,
176-
/// 64-bit IEEE 754 floating bit.
176+
/// 64-bit IEEE 754 floating point.
177177
Double,
178178
/// Fixed point decimal
179179
Decimal {
180-
/// Precision
180+
/// Precision, must be 38 or less
181181
precision: u32,
182182
/// Scale
183183
scale: u32,

crates/iceberg/src/spec/values.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl Datum {
228228
}
229229
}
230230

231-
/// Creates an 32bit floating point number.
231+
/// Creates an 64bit floating point number.
232232
///
233233
/// Example:
234234
/// ```rust
@@ -265,7 +265,7 @@ impl Datum {
265265
}
266266
}
267267

268-
/// Creates a date in `%Y-%m-%d` format, assume in utc timezone.
268+
/// Creates date literal in `%Y-%m-%d` format, assume in utc timezone.
269269
///
270270
/// See [`NaiveDate::from_str`].
271271
///
@@ -289,7 +289,7 @@ impl Datum {
289289
Ok(Self::date(date_from_naive_date(t)))
290290
}
291291

292-
/// Create a date from calendar date (year, month and day).
292+
/// Create date literal from calendar date (year, month and day).
293293
///
294294
/// See [`NaiveDate::from_ymd_opt`].
295295
///
@@ -313,9 +313,9 @@ impl Datum {
313313
Ok(Self::date(date_from_naive_date(t)))
314314
}
315315

316-
/// Creates time in microseconds directly.
316+
/// Creates time literal in microseconds directly.
317317
///
318-
/// It will returns error when it's negative or too large to fit in 24 hours.
318+
/// It will return error when it's negative or too large to fit in 24 hours.
319319
///
320320
/// Example:
321321
///
@@ -364,7 +364,7 @@ impl Datum {
364364
}
365365
}
366366

367-
/// Creates time in microseconds in `%H:%M:%S:.f` format.
367+
/// Creates time literal in microseconds in `%H:%M:%S:.f` format.
368368
///
369369
/// See [`NaiveTime::from_str`] for details.
370370
///

0 commit comments

Comments
 (0)