Skip to content

Commit

Permalink
Fix NaiveTime doc typo
Browse files Browse the repository at this point in the history
`3:00:59 + 60s = 3:01:59`, not `3:02:00`
  • Loading branch information
zachs18 authored and djc committed Jun 15, 2023
1 parent b2cb0fd commit fb220c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/naive/time/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ mod tests;
/// (short for [`NaiveTime::overflowing_add_signed`](#method.overflowing_add_signed)):
///
/// - `03:00:00 + 1s = 03:00:01`.
/// - `03:00:59 + 60s = 03:02:00`.
/// - `03:00:59 + 60s = 03:01:59`.
/// - `03:00:59 + 61s = 03:02:00`.
/// - `03:00:59 + 1s = 03:01:00`.
/// - `03:00:60 + 1s = 03:01:00`.
/// Note that the sum is identical to the previous.
Expand Down

0 comments on commit fb220c8

Please sign in to comment.