net/url: Improve documentation for PathUnescape #26139
Labels
Documentation
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.10.2
Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?N/A
What did you do?
Looked at the godoc for PathUnescape
What did you expect to see?
What did you see instead?
Commentary
It seems like the documentation for PathUnescape was copied from QueryUnescape, with the last line added. However, it then contradicts itself about its behavior with
+
characters.Fix
Remove the line
It also converts '+' into ' ' (space).
from the PathUnescape comment. I would submit a PR but the amount of hoops I'd have to jump through to contribute one line of code is a little much; I'd like to ask that someone who's already set up as Go contributor take care of this.Thanks!
The text was updated successfully, but these errors were encountered: