Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duration: tighten documented ranges of sub-second values #670

Merged
merged 1 commit into from
Mar 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions time/src/duration.rs
Original file line number Diff line number Diff line change
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