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

+1-1
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)