From 79ac38c84d3f02695e653a17af33c74c05f9bcf5 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sun, 26 Jun 2016 21:46:54 +0200 Subject: [PATCH] docs(smtp): typo fixes --- src/transport/smtp/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/transport/smtp/mod.rs b/src/transport/smtp/mod.rs index d67eab7..6a964b0 100644 --- a/src/transport/smtp/mod.rs +++ b/src/transport/smtp/mod.rs @@ -83,7 +83,7 @@ pub struct SmtpTransportBuilder { security_level: SecurityLevel, /// Enable UTF8 mailboxes in envelope or headers smtp_utf8: bool, - /// Optionnal enforced authentication mechanism + /// Optional enforced authentication mechanism authentication_mechanism: Option, } @@ -182,7 +182,7 @@ impl SmtpTransportBuilder { /// Build the SMTP client /// - /// It does not connects to the server, but only creates the `SmtpTransport` + /// It does not connect to the server, but only creates the `SmtpTransport` pub fn build(self) -> SmtpTransport { SmtpTransport::new(self) } @@ -323,7 +323,7 @@ impl EmailTransport for SmtpTransport { let mut found = false; - // Compute accepted mechnism + // Compute accepted mechanism let accepted_mechanisms = match self.client_info.authentication_mechanism { Some(mechanism) => vec![mechanism], None => { @@ -332,7 +332,7 @@ impl EmailTransport for SmtpTransport { // simplest vec![Mechanism::Plain, Mechanism::CramMd5] } else { - // If not encrypted, do not all clear-text passwords + // If not encrypted, do not allow clear-text passwords vec![Mechanism::CramMd5] } }