]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.7.html: net/mail.ParseAddress is stricter
authorIan Lance Taylor <iant@golang.org>
Thu, 2 Jun 2016 19:33:34 +0000 (12:33 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 3 Jun 2016 01:48:45 +0000 (01:48 +0000)
Fixes #15940.

Change-Id: Ie6da6fef235c6a251caa96d45f606c05d118a0ac
Reviewed-on: https://go-review.googlesource.com/23710
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Travis Beatty <travisby@gmail.com>
Reviewed-by: Andrew Gerrand <adg@golang.org>
doc/go1.7.html

index ae724e8a635461356c72576ee058b5e3487ead92..2a3c3c95d260108bdd908ee7b42d22375d4e2eab 100644 (file)
@@ -975,6 +975,15 @@ the address encoder, namely
 <a href="/pkg/net/mail/#Address.String"><code>String</code></a> method,
 continues to escape all UTF-8 text following <a href="https://tools.ietf.org/html/rfc5322">RFC 5322</a>.
 </p>
+
+<p>
+The <a href="/pkg/net/mail/#ParseAddress"><code>ParseAddress</code></a>
+function and
+the <a href="/pkg/net/mail/#AddressParser.Parse"><code>AddressParser.Parse</code></a>
+method are stricter.
+They used to ignore any characters following an e-mail address, but
+will now return an error for anything other than whitespace.
+</p>
 </dd>
 
 <dl id="net/url"><a href="/pkg/net/url/">net/url</a></dl>