Skip to content

Commit

Permalink
Duration: tighten documented ranges of sub-second values (#670)
Browse files Browse the repository at this point in the history
This brings the documentation in line with the existing behavior.
  • Loading branch information
samcowger committed Mar 9, 2024
1 parent 7a6a800 commit 7ce6e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions time/src/duration.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 7ce6e19

Please sign in to comment.