mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 15:26:12 +00:00
Fix incorrect doc comment (seconds -> milliseconds)
This commit is contained in:
parent
89a387f02b
commit
7eb6db156c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user