Skip to content

Commit

Permalink
Fix: Typ in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Dixey authored and djc committed Nov 25, 2022
1 parent ff370ae commit 5312160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/naive/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl NaiveWeek {

/// A duration in calendar days.
///
/// This is useful becuase when using `Duration` it is possible
/// This is useful because when using `Duration` it is possible
/// that adding `Duration::days(1)` doesn't increment the day value as expected due to it being a
/// fixed number of seconds. This difference applies only when dealing with `DateTime<TimeZone>` data types
/// and in other cases `Duration::days(n)` and `Days::new(n)` are equivalent.
Expand Down Expand Up @@ -2189,7 +2189,7 @@ mod tests {
None
);

// sub with months exceeindg `i32::MIN`
// sub with months exceeding `i32::MIN`
assert_eq!(
NaiveDate::from_ymd_opt(2022, 8, 3)
.unwrap()
Expand Down

0 comments on commit 5312160

Please sign in to comment.