From e8f1df5992da3c4c9439e9841ae7e7782732a2ef Mon Sep 17 00:00:00 2001 From: cuishuang Date: Tue, 26 Apr 2022 17:13:23 +0800 Subject: [PATCH] fix some typos Signed-off-by: cuishuang --- src/datetime/mod.rs | 4 ++-- src/format/scan.rs | 2 +- src/naive/datetime/mod.rs | 2 +- src/naive/isoweek.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/datetime/mod.rs b/src/datetime/mod.rs index 4dd2102377..fe41b4cc0f 100644 --- a/src/datetime/mod.rs +++ b/src/datetime/mod.rs @@ -221,7 +221,7 @@ impl DateTime { /// Note that this does reduce the number of years that can be represented /// from ~584 Billion to ~584 Thousand. (If this is a problem, please file /// an issue to let me know what domain needs microsecond precision over - /// millenia, I'm curious.) + /// millennia, I'm curious.) /// /// # Example /// @@ -453,7 +453,7 @@ impl DateTime { /// Parses an RFC 2822 date and time string such as `Tue, 1 Jul 2003 10:52:37 +0200`, /// then returns a new [`DateTime`] with a parsed [`FixedOffset`]. /// - /// RFC 2822 is the internet message standard that specifices the + /// RFC 2822 is the internet message standard that specifies the /// representation of times in HTTP and email headers. /// /// ``` diff --git a/src/format/scan.rs b/src/format/scan.rs index 6969c81a1e..856fa2f567 100644 --- a/src/format/scan.rs +++ b/src/format/scan.rs @@ -343,7 +343,7 @@ pub(super) fn timezone_offset_2822(s: &str) -> ParseResult<(&str, Option)> } } -/// Tries to consume everyting until next whitespace-like symbol. +/// Tries to consume everything until next whitespace-like symbol. /// Does not provide any offset information from the consumed data. pub(super) fn timezone_name_skip(s: &str) -> ParseResult<(&str, ())> { Ok((s.trim_left_matches(|c: char| !c.is_whitespace()), ())) diff --git a/src/naive/datetime/mod.rs b/src/naive/datetime/mod.rs index 950fa239e7..8b28692c42 100644 --- a/src/naive/datetime/mod.rs +++ b/src/naive/datetime/mod.rs @@ -335,7 +335,7 @@ impl NaiveDateTime { /// Note also that this does reduce the number of years that can be /// represented from ~584 Billion to ~584 Thousand. (If this is a problem, /// please file an issue to let me know what domain needs microsecond - /// precision over millenia, I'm curious.) + /// precision over millennia, I'm curious.) /// /// # Example /// diff --git a/src/naive/isoweek.rs b/src/naive/isoweek.rs index 2d98257c44..3cadf6b102 100644 --- a/src/naive/isoweek.rs +++ b/src/naive/isoweek.rs @@ -10,7 +10,7 @@ use super::internals::{DateImpl, Of, YearFlags}; /// ISO 8601 week. /// /// This type, combined with [`Weekday`](../enum.Weekday.html), -/// constitues the ISO 8601 [week date](./struct.NaiveDate.html#week-date). +/// constitutes the ISO 8601 [week date](./struct.NaiveDate.html#week-date). /// One can retrieve this type from the existing [`Datelike`](../trait.Datelike.html) types /// via the [`Datelike::iso_week`](../trait.Datelike.html#tymethod.iso_week) method. #[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone)]