1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:34:40 -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:
Alex Brainman 2012-03-28 12:27:36 +11:00
parent 70a8948a39
commit 48a2c50a18

View File

@ -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:]
}