@@ -1045,7 +1045,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
1045
1045
map_local ( self , |datetime| datetime. with_month0 ( month0) )
1046
1046
}
1047
1047
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.
1049
1049
///
1050
1050
/// See also the [`NaiveDate::with_day`] method.
1051
1051
///
@@ -1061,7 +1061,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
1061
1061
map_local ( self , |datetime| datetime. with_day ( day) )
1062
1062
}
1063
1063
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.
1065
1065
///
1066
1066
/// See also the [`NaiveDate::with_day0`] method.
1067
1067
///
@@ -1077,7 +1077,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
1077
1077
map_local ( self , |datetime| datetime. with_day0 ( day0) )
1078
1078
}
1079
1079
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.
1081
1081
///
1082
1082
/// See also the [`NaiveDate::with_ordinal`] method.
1083
1083
///
@@ -1093,7 +1093,7 @@ impl<Tz: TimeZone> Datelike for DateTime<Tz> {
1093
1093
map_local ( self , |datetime| datetime. with_ordinal ( ordinal) )
1094
1094
}
1095
1095
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.
1097
1097
///
1098
1098
/// See also the [`NaiveDate::with_ordinal0`] method.
1099
1099
///
0 commit comments