mirror of
https://github.com/golang/go
synced 2024-11-23 05:50:05 -07:00
net/url: correct the documentation for PathUnescape
Fixes issue #26139
Change-Id: Id9a3e5c443ee175ad9add6296ed45bdf328b15a0
GitHub-Last-Rev: b3f8a8f165
GitHub-Pull-Request: golang/go#26146
Reviewed-on: https://go-review.googlesource.com/121696
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
3198b90ea8
commit
1b12a2ca21
@ -164,7 +164,7 @@ func shouldEscape(c byte, mode encoding) bool {
|
||||
|
||||
// QueryUnescape does the inverse transformation of QueryEscape,
|
||||
// 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 by two hexadecimal
|
||||
// digits.
|
||||
func QueryUnescape(s string) (string, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user