]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: fix contradiction in PathUnescape docs
authorRoss Light <light@google.com>
Wed, 21 Mar 2018 16:54:22 +0000 (09:54 -0700)
committerRoss Light <light@google.com>
Wed, 21 Mar 2018 20:46:13 +0000 (20:46 +0000)
Change-Id: If35e3faa738c5d7d72cf77d14b276690579180a1
Reviewed-on: https://go-review.googlesource.com/101921
Run-TryBot: Ross Light <light@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/url/url.go

index 3e1217954220389c08b0ce086f131dde9052f187..cc6c5e26e492a5cd2daf736f1c735d3003f2b0ae 100644 (file)
@@ -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).