to -> from

This commit is contained in:
Eric Sheppard 2022-08-23 22:33:05 +10:00 committed by Dirkjan Ochtman
parent 181b083647
commit 9a2ba95388

View File

@ -376,7 +376,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
.single()
}
/// Subtract a duration in [`Days`] to the date part of the `DateTime`
/// Subtract a duration in [`Days`] from the date part of the `DateTime`
///
/// Returns `None` if the resulting date would be out of range.
pub fn checked_sub_days(self, days: Days) -> Option<Self> {