From e54728b760e83e480cd061553a471150f5acca99 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sun, 12 May 2024 21:56:46 +0530 Subject: [PATCH] docs: include rustdoc comments --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index fb27d18..63bbf88 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -161,6 +161,7 @@ fn write_local_minus_utc(w: &mut fmt::Formatter, off: FixedOffset, allow_zulu: b } } +/// Parses a [Fixed] value and formats it. fn parse_fixed( w: &mut fmt::Formatter, date: Option<&NaiveDate>, @@ -249,6 +250,7 @@ fn parse_fixed( } } +/// Parses a [Numeric] value and returns its width and its formattable component. fn parse_numeric(date: Option<&NaiveDate>, time: Option<&NaiveTime>, off: Option<&(String, FixedOffset)>, spec: &Numeric) -> (usize, Option) { use self::Numeric::*;