We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d50b1 commit 7974c60Copy full SHA for 7974c60
src/datetime/mod.rs
@@ -1727,7 +1727,7 @@ impl<Tz: TimeZone> Sub<&DateTime<Tz>> for DateTime<Tz> {
1727
/// - The local time at the resulting date does not exist or is ambiguous, for example during a
1728
/// daylight saving time transition.
1729
///
1730
-/// Strongly consider using `DateTime<Tz>::checked_sub_days` to get an `Option` instead.
+/// Strongly consider using `DateTime<Tz>::checked_add_days` to get an `Option` instead.
1731
impl<Tz: TimeZone> Add<Days> for DateTime<Tz> {
1732
type Output = DateTime<Tz>;
1733
0 commit comments