From 65727ab59d20663a76692fea7b8444dbb349080b Mon Sep 17 00:00:00 2001 From: Ross Light Date: Wed, 21 Mar 2018 09:54:22 -0700 Subject: [PATCH] net/url: fix contradiction in PathUnescape docs Change-Id: If35e3faa738c5d7d72cf77d14b276690579180a1 Reviewed-on: https://go-review.googlesource.com/101921 Run-TryBot: Ross Light TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/net/url/url.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/net/url/url.go b/src/net/url/url.go index 3e12179542..cc6c5e26e4 100644 --- a/src/net/url/url.go +++ b/src/net/url/url.go @@ -174,9 +174,8 @@ func QueryUnescape(s string) (string, error) { // PathUnescape does the inverse transformation of PathEscape, // 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. +// hex-decoded byte 0xAB. It returns an error if any % is not followed +// by two hexadecimal digits. // // PathUnescape is identical to QueryUnescape except that it does not // unescape '+' to ' ' (space). -- 2.50.0