summaryrefslogtreecommitdiff
path: root/src/net/url
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-12-05 20:40:26 -0500
committerBrad Fitzpatrick <bradfitz@golang.org>2017-12-06 03:58:57 +0000
commit358d7c93e2df39e1e76d27d79fa18e584dca9d5a (patch)
treec1d1436a71404cc0354b575550d6daede4cdad1f /src/net/url
parentbb22a697ab30358605292f435ca75d1badcb212c (diff)
downloadgo-git-358d7c93e2df39e1e76d27d79fa18e584dca9d5a.tar.gz
net/url: fix PathUnescape, QueryUnescape number grammar
They do not convert a plural into a singular. (Introduced recently, in CL 77050.) Change-Id: I3b6c4d03b1866d4133e90b8ab05e8d4bfbd55125 Reviewed-on: https://go-review.googlesource.com/82078 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net/url')
-rw-r--r--src/net/url/url.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/url/url.go b/src/net/url/url.go
index b2de6d6319..7c3d24493e 100644
--- a/src/net/url/url.go
+++ b/src/net/url/url.go
@@ -164,7 +164,7 @@ func shouldEscape(c byte, mode encoding) bool {
}
// QueryUnescape does the inverse transformation of QueryEscape,
-// converting 3-byte encoded substrings 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).
// It returns an error if any % is not followed by two hexadecimal
// digits.
@@ -173,7 +173,7 @@ func QueryUnescape(s string) (string, error) {
}
// PathUnescape does the inverse transformation of PathEscape,
-// converting 3-byte encoded substrings 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).
// It returns an error if any % is not followed by two hexadecimal
// digits.