Skip to content

Commit

Permalink
net/url: fix contradiction in PathUnescape docs
Browse files Browse the repository at this point in the history
Change-Id: If35e3faa738c5d7d72cf77d14b276690579180a1
Reviewed-on: https://go-review.googlesource.com/101921
Run-TryBot: Ross Light <light@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
zombiezen committed Mar 21, 2018
1 parent 2e84dc2 commit 65727ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/net/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 65727ab

Please sign in to comment.