Fix incorrect doc comment (seconds -> milliseconds)

This commit is contained in:
Brennan Vincent 2023-08-21 09:47:49 -04:00 committed by Paul Dicker
parent 89a387f02b
commit 7eb6db156c

View File

@ -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 {