]> Cypherpunks repositories - gostls13.git/commitdiff
net/smtp: give example addrs in docs
authorRuss Cox <rsc@golang.org>
Wed, 15 Jul 2015 03:33:29 +0000 (23:33 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 15 Jul 2015 05:34:29 +0000 (05:34 +0000)
Fixes #9140.

Change-Id: I3b85053262cac3c30358f8e03a5aca65dbc67623
Reviewed-on: https://go-review.googlesource.com/12231
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/smtp/smtp.go

index 81f3c0bd62ab0e5d160620c7ba6c86fb1300e133..0988350322204f7e43fdfcc172d16c8646031f67 100644 (file)
@@ -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.
 //