From d18eec4d1bc4bf07d39fcfd819c0eb2ebf08ef06 Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Sun, 27 Mar 2016 21:40:20 +0200 Subject: [PATCH] Doc formatting --- src/lib.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9e0b2b7..8ecec23 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,8 +10,8 @@ //! //! ## Creating messages //! -//! The `email` part builds email messages. For now, it does not support attachment nor alternative bodies. -//! An email is built using an `EmailBuilder`. The simplest email could be: +//! The `email` part builds email messages. For now, it does not support attachment nor alternative +//! bodies. An email is built using an `EmailBuilder`. The simplest email could be: //! //! ```rust //! use lettre::email::EmailBuilder; @@ -29,9 +29,9 @@ //! assert!(email.is_ok()); //! ``` //! -//! When the `build` method is called, the `EmailBuilder` will add the missing headers (like `Message-ID` or `Date`) and -//! check for missing necessary ones (like `From` or `To`). It will then generate an `Email` that can -//! be sent. +//! When the `build` method is called, the `EmailBuilder` will add the missing headers (like +//! `Message-ID` or `Date`) and check for missing necessary ones (like `From` or `To`). It will +//! then generate an `Email` that can be sent. //! //! Below is a more complete example, not using method chaining: //! @@ -56,14 +56,15 @@ //! See the `EmailBuilder` documentation for a complete list of methods. //! //! ## Sending messages -//! +//! //! The following sections describe the available transport methods to treat emails. //! //! * The `SmtpTransport` uses the SMTP protocol to send the message over the network. It is //! the prefered way of sending emails. -//! * The `FileTransport` creates a file containing the email content to be sent. It can be used for debugging -//! or if you want to keep all sent emails. -//! * The `StubTransport` is useful for debugging, and only prints the content of the email in the logs. +//! * The `FileTransport` creates a file containing the email content to be sent. It can be used +//! for debugging or if you want to keep all sent emails. +//! * The `StubTransport` is useful for debugging, and only prints the content of the email in the +//! logs. //! //! ### SMTP transport //!