From 7eb6db156c11af9690432a20eb626bc403b1859e Mon Sep 17 00:00:00 2001 From: Brennan Vincent Date: Mon, 21 Aug 2023 09:47:49 -0400 Subject: [PATCH] Fix incorrect doc comment (seconds -> milliseconds) --- src/oldtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oldtime.rs b/src/oldtime.rs index f343756ed4..a659e8a7fe 100644 --- a/src/oldtime.rs +++ b/src/oldtime.rs @@ -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 {