From 8839f9c1c7054191f5ea42298a1e6823c7d765c7 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Thu, 22 Aug 2024 17:53:08 -0400 Subject: [PATCH] doc: small fixes --- src/fmt/temporal/parser.rs | 2 +- src/fmt/util.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fmt/temporal/parser.rs b/src/fmt/temporal/parser.rs index 6120ff61..c03b552a 100644 --- a/src/fmt/temporal/parser.rs +++ b/src/fmt/temporal/parser.rs @@ -18,7 +18,7 @@ use crate::{ pub(super) struct ParsedDateTime<'i> { /// The original input that the datetime was parsed from. input: escape::Bytes<'i>, - /// An optional civil date. + /// A required civil date. date: ParsedDate<'i>, /// An optional civil time. time: Option>, diff --git a/src/fmt/util.rs b/src/fmt/util.rs index 62284d4b..568abf3b 100644 --- a/src/fmt/util.rs +++ b/src/fmt/util.rs @@ -188,8 +188,8 @@ impl FractionalFormatter { /// /// If the `precision` is greater than `9`, then it is clamped to `9`. /// - /// When the precision is not set, then it is automatically determined base - /// on the value. + /// When the precision is not set, then it is automatically determined + /// based on the value. pub(crate) const fn precision( self, mut precision: u8,