Skip to content

Commit

Permalink
fix docs: milliseconds -> seconds (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
refacto committed Jun 5, 2020
1 parent 7e6b59b commit d4116e1
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 @@ -98,8 +98,8 @@ impl Duration {
}

/// Makes a new `Duration` with given number of seconds.
/// Panics when the duration is more than `i64::MAX` milliseconds
/// or less than `i64::MIN` milliseconds.
/// Panics when the duration is more than `i64::MAX` seconds
/// or less than `i64::MIN` seconds.
#[inline]
pub fn seconds(seconds: i64) -> Duration {
let d = Duration { secs: seconds, nanos: 0 };
Expand Down

0 comments on commit d4116e1

Please sign in to comment.