mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-27 13:01:37 +00:00
Fix typos in Datelike impl for DateTime
This commit is contained in:
parent
6ec8f97d16
commit
cee242a656
@ -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.
|
||||
///
|
||||
@ -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.
|
||||
///
|
||||
@ -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.
|
||||
///
|
||||
@ -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.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user