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:
parent
2e84dc2596
commit
65727ab59d
@ -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).
|
||||||
|
Loading…
Reference in New Issue
Block a user