Skip to content

Commit

Permalink
net/url: correct the documentation for PathUnescape
Browse files Browse the repository at this point in the history
Fixes issue #26139

Change-Id: Id9a3e5c443ee175ad9add6296ed45bdf328b15a0
GitHub-Last-Rev: b3f8a8f
GitHub-Pull-Request: #26146
Reviewed-on: https://go-review.googlesource.com/121696
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
conspicuousClockwork authored and bradfitz committed Jun 29, 2018
1 parent 3198b90 commit 1b12a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b12a2c

Please sign in to comment.