From: Rob Pike Date: Thu, 7 Jul 2011 06:05:38 +0000 (+1000) Subject: os: fix documentation for FileInfo.Name. X-Git-Tag: weekly.2011-07-07~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=07c9a925644ad2c6f6742be09371c0556f3beb91;p=gostls13.git os: fix documentation for FileInfo.Name. It's the base name, not the full name. Fixes #2047. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4680041 --- diff --git a/src/pkg/os/types.go b/src/pkg/os/types.go index 79f6e9d497..df57b59a38 100644 --- a/src/pkg/os/types.go +++ b/src/pkg/os/types.go @@ -27,7 +27,7 @@ type FileInfo struct { Atime_ns int64 // access time; nanoseconds since epoch. Mtime_ns int64 // modified time; nanoseconds since epoch. Ctime_ns int64 // status change time; nanoseconds since epoch. - Name string // name of file as presented to Open. + Name string // base name of the file name provided in Open, Stat, etc. FollowedSymlink bool // followed a symlink to get this information }