We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352a352 commit 7e25ffbCopy full SHA for 7e25ffb
src/datetime/mod.rs
@@ -594,7 +594,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
594
///
595
/// # Errors
596
597
- /// Returns `None` if `base < self`.
+ /// Returns `None` if `base > self`.
598
#[must_use]
599
pub fn years_since(&self, base: Self) -> Option<u32> {
600
let mut years = self.year() - base.year();
src/naive/date/mod.rs
@@ -1136,7 +1136,7 @@ impl NaiveDate {
1136
1137
1138
1139
1140
1141
pub const fn years_since(&self, base: Self) -> Option<u32> {
1142
0 commit comments