From cee242a6565bffcc2a90c8566136c3b96491a821 Mon Sep 17 00:00:00 2001 From: Tam Pham Date: Thu, 18 Jan 2024 11:14:31 -0600 Subject: [PATCH] Fix typos in Datelike impl for DateTime --- src/datetime/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/datetime/mod.rs b/src/datetime/mod.rs index 9d4e1c3861..6b3e49f5f4 100644 --- a/src/datetime/mod.rs +++ b/src/datetime/mod.rs @@ -1045,7 +1045,7 @@ impl Datelike for DateTime { 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 Datelike for DateTime { 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 Datelike for DateTime { 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 Datelike for DateTime { 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. ///