Minor doc wording changes.

This commit is contained in:
Jordan Petridis 2017-10-09 02:03:18 +03:00
parent 7e2f2e0bea
commit 532c025a77
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
1 changed files with 3 additions and 3 deletions

View File

@ -300,8 +300,8 @@
//! to get the number of additional number of nanoseconds. //! to get the number of additional number of nanoseconds.
//! //!
//! ```rust //! ```rust
//! use chrono::DateTime; //! # use chrono::DateTime;
//! use chrono::Utc; //! # use chrono::Utc;
//! // We need the trait in scope to use Utc::timestamp(). //! // We need the trait in scope to use Utc::timestamp().
//! use chrono::TimeZone; //! use chrono::TimeZone;
//! //!
@ -309,7 +309,7 @@
//! let dt = Utc.timestamp(1500000000, 0); //! let dt = Utc.timestamp(1500000000, 0);
//! assert_eq!(dt.to_rfc2822(), "Fri, 14 Jul 2017 02:40:00 +0000"); //! assert_eq!(dt.to_rfc2822(), "Fri, 14 Jul 2017 02:40:00 +0000");
//! //!
//! // from a datetime: //! // Get epoch value from a datetime:
//! let dt = DateTime::parse_from_rfc2822("Fri, 14 Jul 2017 02:40:00 +0000").unwrap(); //! let dt = DateTime::parse_from_rfc2822("Fri, 14 Jul 2017 02:40:00 +0000").unwrap();
//! assert_eq!(dt.timestamp(), 1500000000); //! assert_eq!(dt.timestamp(), 1500000000);
//! ``` //! ```