1
0
mirror of https://github.com/golang/go synced 2024-09-24 05:20:13 -06:00

Update url.go

This commit is contained in:
Caleb Martinez 2018-06-29 15:50:08 -04:00 committed by GitHub
parent cbce223da0
commit b3f8a8f165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {