From: Russ Cox Date: Wed, 15 Jul 2015 03:33:29 +0000 (-0400) Subject: net/smtp: give example addrs in docs X-Git-Tag: go1.5beta2~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=29f03a37c116c9cfe8b6adfbac90e661bd0e42b5;p=gostls13.git net/smtp: give example addrs in docs Fixes #9140. Change-Id: I3b85053262cac3c30358f8e03a5aca65dbc67623 Reviewed-on: https://go-review.googlesource.com/12231 Reviewed-by: Ian Lance Taylor --- diff --git a/src/net/smtp/smtp.go b/src/net/smtp/smtp.go index 81f3c0bd62..0988350322 100644 --- a/src/net/smtp/smtp.go +++ b/src/net/smtp/smtp.go @@ -41,7 +41,7 @@ type Client struct { } // Dial returns a new Client connected to an SMTP server at addr. -// The addr must include a port number. +// The addr must include a port, as in "mail.example.com:smtp". func Dial(addr string) (*Client, error) { conn, err := net.Dial("tcp", addr) if err != nil { @@ -281,6 +281,7 @@ var testHookStartTLS func(*tls.Config) // nil, except for tests // possible, authenticates with the optional mechanism a if possible, // and then sends an email from address from, to addresses to, with // message msg. +// The addr must include a port, as in "mail.example.com:smtp". // // The addresses in the to parameter are the SMTP RCPT addresses. //