]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: document that unparsable URL in net/url.Error is now quoted
authorStefan Baebler <sbaebler@outbrain.com>
Fri, 6 Mar 2020 08:21:26 +0000 (08:21 +0000)
committerIan Lance Taylor <iant@golang.org>
Fri, 6 Mar 2020 14:41:22 +0000 (14:41 +0000)
Fixes #37614
Updates #36878
Updates #29384
Updates #37630

Change-Id: I63dad8b554353197ae0f29fa2a84f17bffa58557
GitHub-Last-Rev: 5297df32200ea5b52b2e7b52c8ee022d37e44111
GitHub-Pull-Request: golang/go#37661
Reviewed-on: https://go-review.googlesource.com/c/go/+/222037
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.14.html

index 6e7c5dc9b62ffa614639f3a94bcacbff27c0fb44..eb35fa8cae9d4671f3839e5f715e4d194b081268 100644 (file)
@@ -759,6 +759,19 @@ Do not send CLs removing the interior tags from such phrases.
   </dd>
 </dl><!-- net/textproto -->
 
+<dl id="net/url"><dt><a href="/pkg/net/url/">net/url</a></dt>
+  <dd>
+    <p><!-- CL 185117 -->
+      When parsing of a URL fails
+      (for example by <a href="/pkg/net/url/#Parse"><code>Parse</code></a>
+      or <a href="/pkg/net/url/#ParseRequestURI"><code>ParseRequestURI</code></a>),
+      the resulting <a href="/pkg/net/url/#Error.Error"><code>Error</code></a> message
+      will now quote the unparsable URL.
+      This provides clearer structure and consistency with other parsing errors.
+    </p>
+  </dd>
+</dl><!-- net/url -->
+
 <dl id="os/signal"><dt><a href="/pkg/os/signal/">os/signal</a></dt>
   <dd>
     <p><!-- CL 187739 -->