]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: correct the documentation for PathUnescape
authorCaleb Martinez <accounts@calebmartinez.com>
Fri, 29 Jun 2018 19:56:56 +0000 (19:56 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 29 Jun 2018 23:03:53 +0000 (23:03 +0000)
Fixes issue #26139

Change-Id: Id9a3e5c443ee175ad9add6296ed45bdf328b15a0
GitHub-Last-Rev: b3f8a8f165d15cfffd4948151eae34f95330748c
GitHub-Pull-Request: golang/go#26146
Reviewed-on: https://go-review.googlesource.com/121696
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/url/url.go

index 7bcfac44aa3cfbefa533df61f12dfd841c1c424e..6608dbd74a8967a3f50c5bfe74f19355d46e0ff5 100644 (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) {