Skip to content

Commit c5c22a3

Browse files
nmltdjc
authored andcommitted
Fix wrong amount of micro/milliseconds
1 parent 361b9fc commit c5c22a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/naive/date/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ impl NaiveDate {
755755

756756
/// Makes a new `NaiveDateTime` from the current date, hour, minute, second and millisecond.
757757
///
758-
/// The millisecond part is allowed to exceed 1,000,000,000 in order to represent a [leap second](
758+
/// The millisecond part is allowed to exceed 1,000 in order to represent a [leap second](
759759
/// ./struct.NaiveTime.html#leap-second-handling), but only when `sec == 59`.
760760
///
761761
/// # Panics
@@ -770,7 +770,7 @@ impl NaiveDate {
770770

771771
/// Makes a new `NaiveDateTime` from the current date, hour, minute, second and millisecond.
772772
///
773-
/// The millisecond part is allowed to exceed 1,000,000,000 in order to represent a [leap second](
773+
/// The millisecond part is allowed to exceed 1,000 in order to represent a [leap second](
774774
/// ./struct.NaiveTime.html#leap-second-handling), but only when `sec == 59`.
775775
///
776776
/// # Errors
@@ -805,7 +805,7 @@ impl NaiveDate {
805805

806806
/// Makes a new `NaiveDateTime` from the current date, hour, minute, second and microsecond.
807807
///
808-
/// The microsecond part is allowed to exceed 1,000,000,000 in order to represent a [leap second](
808+
/// The microsecond part is allowed to exceed 1,000,000 in order to represent a [leap second](
809809
/// ./struct.NaiveTime.html#leap-second-handling), but only when `sec == 59`.
810810
///
811811
/// # Panics

0 commit comments

Comments
 (0)