Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <imcusg@gmail.com>
  • Loading branch information
cuishuang authored and djc committed Apr 26, 2022
1 parent 279f590 commit 4333e39
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/datetime/mod.rs
Expand Up @@ -221,7 +221,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
/// 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
///
Expand Down Expand Up @@ -453,7 +453,7 @@ impl DateTime<FixedOffset> {
/// 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.
///
/// ```
Expand Down
2 changes: 1 addition & 1 deletion src/format/scan.rs
Expand Up @@ -343,7 +343,7 @@ pub(super) fn timezone_offset_2822(s: &str) -> ParseResult<(&str, Option<i32>)>
}
}

/// 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()), ()))
Expand Down
2 changes: 1 addition & 1 deletion src/naive/datetime/mod.rs
Expand Up @@ -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
///
Expand Down
2 changes: 1 addition & 1 deletion src/naive/isoweek.rs
Expand Up @@ -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)]
Expand Down

0 comments on commit 4333e39

Please sign in to comment.