1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:24:41 -07:00

net/url: fix contradiction in PathUnescape docs

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>
This commit is contained in:
Ross Light 2018-03-21 09:54:22 -07:00
parent 2e84dc2596
commit 65727ab59d

View File

@ -174,9 +174,8 @@ func QueryUnescape(s string) (string, error) {
// PathUnescape does the inverse transformation of PathEscape, // PathUnescape does the inverse transformation of PathEscape,
// converting each 3-byte encoded substring of the form "%AB" into the // converting each 3-byte encoded substring of the form "%AB" into the
// hex-decoded byte 0xAB. It also converts '+' into ' ' (space). // hex-decoded byte 0xAB. It returns an error if any % is not followed
// It returns an error if any % is not followed by two hexadecimal // by two hexadecimal digits.
// digits.
// //
// PathUnescape is identical to QueryUnescape except that it does not // PathUnescape is identical to QueryUnescape except that it does not
// unescape '+' to ' ' (space). // unescape '+' to ' ' (space).