Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some typos #680

Merged
merged 1 commit into from Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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