mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-03 07:46:24 +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.
|
/// Makes a new `Duration` with given number of seconds.
|
||||||
/// Panics when the duration is more than `i64::MAX` seconds
|
/// Panics when the duration is more than `i64::MAX` milliseconds
|
||||||
/// or less than `i64::MIN` seconds.
|
/// or less than `i64::MIN` milliseconds.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn seconds(seconds: i64) -> Duration {
|
pub fn seconds(seconds: i64) -> Duration {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user