Skip to content

Commit

Permalink
Fix micros (optional) limit in and_hms_micro_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
qrilka authored and djc committed May 30, 2024
1 parent f129a8b commit 865b0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/naive/date/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ impl NaiveDate {

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

0 comments on commit 865b0ad

Please sign in to comment.