Skip to content

Commit 865b0ad

Browse files
qrilkadjc
authored andcommitted
Fix micros (optional) limit in and_hms_micro_opt
1 parent f129a8b commit 865b0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/naive/date/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ impl NaiveDate {
834834

835835
/// Makes a new `NaiveDateTime` from the current date, hour, minute, second and microsecond.
836836
///
837-
/// The microsecond part is allowed to exceed 1,000,000,000 in order to represent a [leap second](
837+
/// The microsecond part is allowed to exceed 1,000,000 in order to represent a [leap second](
838838
/// ./struct.NaiveTime.html#leap-second-handling), but only when `sec == 59`.
839839
///
840840
/// # Errors

0 commit comments

Comments
 (0)