Skip to content

Commit dc65229

Browse files
committed
chore: minor improvement for docs
Signed-off-by: spuradage <spuradage@outlook.com>
1 parent 8c82711 commit dc65229

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/datetime/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
414414
}
415415

416416
/// Fix the offset from UTC to its current value, dropping the associated timezone information.
417-
/// This it useful for converting a generic `DateTime<Tz: Timezone>` to `DateTime<FixedOffset>`.
417+
/// This is useful for converting a generic `DateTime<Tz: Timezone>` to `DateTime<FixedOffset>`.
418418
#[inline]
419419
#[must_use]
420420
pub fn fixed_offset(&self) -> DateTime<FixedOffset> {
@@ -1518,7 +1518,7 @@ impl<Tz: TimeZone> hash::Hash for DateTime<Tz> {
15181518
/// Add `TimeDelta` to `DateTime`.
15191519
///
15201520
/// As a part of Chrono's [leap second handling], the addition assumes that **there is no leap
1521-
/// second ever**, except when the `NaiveDateTime` itself represents a leap second in which case
1521+
/// second ever**, except when the `NaiveDateTime` itself represents a leap second in which case
15221522
/// the assumption becomes that **there is exactly a single leap second ever**.
15231523
///
15241524
/// # Panics
@@ -1537,7 +1537,7 @@ impl<Tz: TimeZone> Add<TimeDelta> for DateTime<Tz> {
15371537
/// Add `std::time::Duration` to `DateTime`.
15381538
///
15391539
/// As a part of Chrono's [leap second handling], the addition assumes that **there is no leap
1540-
/// second ever**, except when the `NaiveDateTime` itself represents a leap second in which case
1540+
/// second ever**, except when the `NaiveDateTime` itself represents a leap second in which case
15411541
/// the assumption becomes that **there is exactly a single leap second ever**.
15421542
///
15431543
/// # Panics
@@ -1558,7 +1558,7 @@ impl<Tz: TimeZone> Add<Duration> for DateTime<Tz> {
15581558
/// Add-assign `chrono::Duration` to `DateTime`.
15591559
///
15601560
/// As a part of Chrono's [leap second handling], the addition assumes that **there is no leap
1561-
/// second ever**, except when the `NaiveDateTime` itself represents a leap second in which case
1561+
/// second ever**, except when the `NaiveDateTime` itself represents a leap second in which case
15621562
/// the assumption becomes that **there is exactly a single leap second ever**.
15631563
///
15641564
/// # Panics
@@ -1578,7 +1578,7 @@ impl<Tz: TimeZone> AddAssign<TimeDelta> for DateTime<Tz> {
15781578
/// Add-assign `std::time::Duration` to `DateTime`.
15791579
///
15801580
/// As a part of Chrono's [leap second handling], the addition assumes that **there is no leap
1581-
/// second ever**, except when the `NaiveDateTime` itself represents a leap second in which case
1581+
/// second ever**, except when the `NaiveDateTime` itself represents a leap second in which case
15821582
/// the assumption becomes that **there is exactly a single leap second ever**.
15831583
///
15841584
/// # Panics
@@ -1678,7 +1678,7 @@ impl<Tz: TimeZone> Sub<Duration> for DateTime<Tz> {
16781678
/// This is the same as the addition with a negated `TimeDelta`.
16791679
///
16801680
/// As a part of Chrono's [leap second handling], the addition assumes that **there is no leap
1681-
/// second ever**, except when the `DateTime` itself represents a leap second in which case
1681+
/// second ever**, except when the `DateTime` itself represents a leap second in which case
16821682
/// the assumption becomes that **there is exactly a single leap second ever**.
16831683
///
16841684
/// # Panics
@@ -1698,7 +1698,7 @@ impl<Tz: TimeZone> SubAssign<TimeDelta> for DateTime<Tz> {
16981698
/// Subtract-assign `std::time::Duration` from `DateTime`.
16991699
///
17001700
/// As a part of Chrono's [leap second handling], the addition assumes that **there is no leap
1701-
/// second ever**, except when the `DateTime` itself represents a leap second in which case
1701+
/// second ever**, except when the `DateTime` itself represents a leap second in which case
17021702
/// the assumption becomes that **there is exactly a single leap second ever**.
17031703
///
17041704
/// # Panics
@@ -1993,8 +1993,8 @@ where
19931993
/// Number of days between January 1, 1970 and December 31, 1 BCE which we define to be day 0.
19941994
/// 4 full leap year cycles until December 31, 1600 4 * 146097 = 584388
19951995
/// 1 day until January 1, 1601 1
1996-
/// 369 years until January 1, 1970 369 * 365 = 134685
1997-
/// of which floor(369 / 4) are leap years floor(369 / 4) = 92
1996+
/// 369 years until January 1, 1970 369 * 365 = 134685
1997+
/// of which floor(369 / 4) are leap years floor(369 / 4) = 92
19981998
/// except for 1700, 1800 and 1900 -3 +
19991999
/// --------
20002000
/// 719163

0 commit comments

Comments
 (0)