path/filepath: clarify Dir and Clean documentation for Windows#77696
path/filepath: clarify Dir and Clean documentation for Windows#77696sapbotgit wants to merge 2 commits intogolang:masterfrom
Conversation
… paths
Updates documentation to clarify behavior on Windows:
- Dir("C:") returns "C:." not "C:" or "C:\"
- Clean("C:") returns "C:." without trailing slash
Fixes golang#77314
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
This PR (HEAD: 1dd401c) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/746901. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/746901. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/746901. |
Fixes #77314
Updates documentation to clarify behavior on Windows:
The current documentation is misleading because it suggests that "C:" would return "C:" but it actually returns "C:."