Skip to content

Commit 2b0f481

Browse files
stefanbianlancetaylor
authored andcommitted
doc/go1.14: document that unparsable URL in net/url.Error is now quoted
Fixes #37614 Updates #36878 Updates #29384 Updates #37630 Change-Id: I63dad8b554353197ae0f29fa2a84f17bffa58557 GitHub-Last-Rev: 5297df3 GitHub-Pull-Request: #37661 Reviewed-on: https://go-review.googlesource.com/c/go/+/222037 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent fadbf74 commit 2b0f481

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/go1.14.html

+13
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,19 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
759759
</dd>
760760
</dl><!-- net/textproto -->
761761

762+
<dl id="net/url"><dt><a href="/pkg/net/url/">net/url</a></dt>
763+
<dd>
764+
<p><!-- CL 185117 -->
765+
When parsing of a URL fails
766+
(for example by <a href="/pkg/net/url/#Parse"><code>Parse</code></a>
767+
or <a href="/pkg/net/url/#ParseRequestURI"><code>ParseRequestURI</code></a>),
768+
the resulting <a href="/pkg/net/url/#Error.Error"><code>Error</code></a> message
769+
will now quote the unparsable URL.
770+
This provides clearer structure and consistency with other parsing errors.
771+
</p>
772+
</dd>
773+
</dl><!-- net/url -->
774+
762775
<dl id="os/signal"><dt><a href="/pkg/os/signal/">os/signal</a></dt>
763776
<dd>
764777
<p><!-- CL 187739 -->

0 commit comments

Comments
 (0)