Skip to content

Commit 7974c60

Browse files
khueydjc
authored andcommitted
Fix comment.
1 parent 77d50b1 commit 7974c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datetime/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ impl<Tz: TimeZone> Sub<&DateTime<Tz>> for DateTime<Tz> {
17271727
/// - The local time at the resulting date does not exist or is ambiguous, for example during a
17281728
/// daylight saving time transition.
17291729
///
1730-
/// Strongly consider using `DateTime<Tz>::checked_sub_days` to get an `Option` instead.
1730+
/// Strongly consider using `DateTime<Tz>::checked_add_days` to get an `Option` instead.
17311731
impl<Tz: TimeZone> Add<Days> for DateTime<Tz> {
17321732
type Output = DateTime<Tz>;
17331733

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy