From 7ce6e196d8b7c3bb87e73f4989c29bce8313d51d Mon Sep 17 00:00:00 2001 From: Sam Cowger Date: Fri, 8 Mar 2024 21:29:04 -0800 Subject: [PATCH] `Duration`: tighten documented ranges of sub-second values (#670) This brings the documentation in line with the existing behavior. --- time/src/duration.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/time/src/duration.rs b/time/src/duration.rs index 1aeb9674a..9495509f6 100644 --- a/time/src/duration.rs +++ b/time/src/duration.rs @@ -857,7 +857,7 @@ impl Duration { /// Get the number of milliseconds past the number of whole seconds. /// - /// Always in the range `-1_000..1_000`. + /// Always in the range `-999..=999`. /// /// ```rust /// # use time::ext::NumericalDuration; @@ -885,7 +885,7 @@ impl Duration { /// Get the number of microseconds past the number of whole seconds. /// - /// Always in the range `-1_000_000..1_000_000`. + /// Always in the range `-999_999..=999_999`. /// /// ```rust /// # use time::ext::NumericalDuration; @@ -911,7 +911,7 @@ impl Duration { /// Get the number of nanoseconds past the number of whole seconds. /// - /// The returned value will always be in the range `-1_000_000_000..1_000_000_000`. + /// The returned value will always be in the range `-999_999_999..=999_999_999`. /// /// ```rust /// # use time::ext::NumericalDuration;