Skip to content

Commit

Permalink
Correct documentation for FromStr for Weekday and Month
Browse files Browse the repository at this point in the history
The parsing specifiers were wrong.
  • Loading branch information
wfraser committed Aug 25, 2023
1 parent bc410bb commit aaaafc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ const BAD_FORMAT: ParseError = ParseError(ParseErrorKind::BadFormat);

// this implementation is here only because we need some private code from `scan`

/// Parsing a `str` into a `Weekday` uses the format [`%W`](./format/strftime/index.html).
/// Parsing a `str` into a `Weekday` uses the format [`%A`](./format/strftime/index.html).
///
/// # Example
///
Expand Down Expand Up @@ -478,7 +478,7 @@ impl FromStr for Weekday {
}
}

/// Parsing a `str` into a `Month` uses the format [`%W`](./format/strftime/index.html).
/// Parsing a `str` into a `Month` uses the format [`%B`](./format/strftime/index.html).
///
/// # Example
///
Expand Down

0 comments on commit aaaafc9

Please sign in to comment.