From: Ross Light Date: Wed, 21 Mar 2018 16:54:22 +0000 (-0700) Subject: net/url: fix contradiction in PathUnescape docs X-Git-Tag: go1.11beta1~1147 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=65727ab59d20663a76692fea7b8444dbb349080b;p=gostls13.git net/url: fix contradiction in PathUnescape docs Change-Id: If35e3faa738c5d7d72cf77d14b276690579180a1 Reviewed-on: https://go-review.googlesource.com/101921 Run-TryBot: Ross Light TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/url/url.go b/src/net/url/url.go index 3e12179542..cc6c5e26e4 100644 --- a/src/net/url/url.go +++ b/src/net/url/url.go @@ -174,9 +174,8 @@ func QueryUnescape(s string) (string, error) { // PathUnescape does the inverse transformation of PathEscape, // converting each 3-byte encoded substring of the form "%AB" into the -// hex-decoded byte 0xAB. It also converts '+' into ' ' (space). -// It returns an error if any % is not followed by two hexadecimal -// digits. +// hex-decoded byte 0xAB. It returns an error if any % is not followed +// by two hexadecimal digits. // // PathUnescape is identical to QueryUnescape except that it does not // unescape '+' to ' ' (space).