mirror of
https://github.com/golang/go
synced 2024-11-25 15:17:58 -07:00
path/filepath: correct comment in EvalSymlinks
R=golang-dev, r CC=golang-dev, hcwfrichter https://golang.org/cl/5934046
This commit is contained in:
parent
70a8948a39
commit
48a2c50a18
@ -55,7 +55,7 @@ func evalSymlinks(path string) (string, error) {
|
|||||||
// syscall.GetLongPathName does not change the case of the drive letter,
|
// syscall.GetLongPathName does not change the case of the drive letter,
|
||||||
// but the result of EvalSymlinks must be unique, so we have
|
// but the result of EvalSymlinks must be unique, so we have
|
||||||
// EvalSymlinks(`c:\a`) == EvalSymlinks(`C:\a`).
|
// 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' {
|
if len(p) >= 2 && p[1] == ':' && 'a' <= p[0] && p[0] <= 'z' {
|
||||||
p = string(p[0]+'A'-'a') + p[1:]
|
p = string(p[0]+'A'-'a') + p[1:]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user