Skip to content

Commit

Permalink
Fix incorrect doc comment (seconds -> milliseconds)
Browse files Browse the repository at this point in the history
  • Loading branch information
umanwizard authored and pitdicker committed Aug 21, 2023
1 parent 89a387f commit 7eb6db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oldtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ impl Duration {
}

/// Makes a new `Duration` with given number of seconds.
/// Panics when the duration is more than `i64::MAX` seconds
/// or less than `i64::MIN` seconds.
/// Panics when the duration is more than `i64::MAX` milliseconds
/// or less than `i64::MIN` milliseconds.
#[inline]
#[must_use]
pub fn seconds(seconds: i64) -> Duration {
Expand Down

0 comments on commit 7eb6db1

Please sign in to comment.