Skip to content

Commit

Permalink
Fix typos in Datelike impl for DateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectrifyPro authored and djc committed Jan 18, 2024
1 parent 6ec8f97 commit cee242a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/datetime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
map_local(self, |datetime| datetime.with_month0(month0))
}

/// Makes a new `DateTime` with the month number (starting from 0) changed.
/// Makes a new `DateTime` with the day of month (starting from 1) changed.
///
/// See also the [`NaiveDate::with_day`] method.
///
Expand All @@ -1061,7 +1061,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
map_local(self, |datetime| datetime.with_day(day))
}

/// Makes a new `DateTime` with the month number (starting from 0) changed.
/// Makes a new `DateTime` with the day of month (starting from 0) changed.
///
/// See also the [`NaiveDate::with_day0`] method.
///
Expand All @@ -1077,7 +1077,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
map_local(self, |datetime| datetime.with_day0(day0))
}

/// Makes a new `DateTime` with the month number (starting from 0) changed.
/// Makes a new `DateTime` with the day of year (starting from 1) changed.
///
/// See also the [`NaiveDate::with_ordinal`] method.
///
Expand All @@ -1093,7 +1093,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
map_local(self, |datetime| datetime.with_ordinal(ordinal))
}

/// Makes a new `DateTime` with the month number (starting from 0) changed.
/// Makes a new `DateTime` with the day of year (starting from 0) changed.
///
/// See also the [`NaiveDate::with_ordinal0`] method.
///
Expand Down

0 comments on commit cee242a

Please sign in to comment.