Commit 48a2c50a authored by Alex Brainman's avatar Alex Brainman

path/filepath: correct comment in EvalSymlinks

R=golang-dev, r
CC=golang-dev, hcwfrichter
https://golang.org/cl/5934046
parent 70a8948a
......@@ -55,7 +55,7 @@ func evalSymlinks(path string) (string, error) {
// syscall.GetLongPathName does not change the case of the drive letter,
// but the result of EvalSymlinks must be unique, so we have
// EvalSymlinks(`c:\a`) == EvalSymlinks(`C:\a`).
// Make drive letter upper case. This matches what os.Getwd returns.
// Make drive letter upper case.
if len(p) >= 2 && p[1] == ':' && 'a' <= p[0] && p[0] <= 'z' {
p = string(p[0]+'A'-'a') + p[1:]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment