Skip to content

Commit cee242a

Browse files
ElectrifyProdjc
authored andcommitted
Fix typos in Datelike impl for DateTime
1 parent 6ec8f97 commit cee242a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/datetime/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
10451045
map_local(self, |datetime| datetime.with_month0(month0))
10461046
}
10471047

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

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

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

1096-
/// Makes a new `DateTime` with the month number (starting from 0) changed.
1096+
/// Makes a new `DateTime` with the day of year (starting from 0) changed.
10971097
///
10981098
/// See also the [`NaiveDate::with_ordinal0`] method.
10991099
///

0 commit comments

Comments
 (0)