@@ -88,7 +88,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
8888 DateTime { datetime, offset }
8989 }
9090
91- /// Retrieves the date without an associated timezone .
91+ /// Retrieves the date component .
9292 ///
9393 /// # Panics
9494 ///
@@ -677,8 +677,7 @@ where
677677}
678678
679679impl DateTime < FixedOffset > {
680- /// Parses an RFC 2822 date and time string such as `Tue, 1 Jul 2003 10:52:37 +0200`,
681- /// then returns a new [`DateTime`] with a parsed [`FixedOffset`].
680+ /// Parses an RFC 2822 date-and-time string into a `DateTime<FixedOffset>` value.
682681 ///
683682 /// This parses valid RFC 2822 datetime strings (such as `Tue, 1 Jul 2003 10:52:37 +0200`)
684683 /// and returns a new [`DateTime`] instance with the parsed timezone as the [`FixedOffset`].
@@ -717,8 +716,7 @@ impl DateTime<FixedOffset> {
717716 parsed. to_datetime ( )
718717 }
719718
720- /// Parses an RFC 3339 and ISO 8601 date and time string such as `1996-12-19T16:39:57-08:00`,
721- /// then returns a new [`DateTime`] with a parsed [`FixedOffset`].
719+ /// Parses an RFC 3339 date-and-time string into a `DateTime<FixedOffset>` value.
722720 ///
723721 /// Parses all valid RFC 3339 values (as well as the subset of valid ISO 8601 values that are
724722 /// also valid RFC 3339 date-and-time values) and returns a new [`DateTime`] with a
@@ -740,8 +738,7 @@ impl DateTime<FixedOffset> {
740738 parsed. to_datetime ( )
741739 }
742740
743- /// Parses a string with the specified format string and returns a new
744- /// [`DateTime`] with a parsed [`FixedOffset`].
741+ /// Parses a string from a user-specified format into a `DateTime<FixedOffset>` value.
745742 ///
746743 /// Note that this method *requires a timezone* in the input string. See
747744 /// [`NaiveDateTime::parse_from_str`](./naive/struct.NaiveDateTime.html#method.parse_from_str)
0 commit comments