diff options
author | Christopher Wedgwood <cw@f00f.org> | 2010-04-11 10:17:45 -0700 |
---|---|---|
committer | Christopher Wedgwood <cw@f00f.org> | 2010-04-11 10:17:45 -0700 |
commit | e1ccd36c368f97121f420b1afa8f94faa1c30908 (patch) | |
tree | 7fc377f59b8324423bf98c9d86d6c2f63ec538b1 /src/cmd/godoc | |
parent | 9de289ff9f8ffaf2c46c2f0f11ea5cd8e1ba15f4 (diff) | |
download | golang-e1ccd36c368f97121f420b1afa8f94faa1c30908.tar.gz |
godoc: change od.Dir -> os.FileInfo in comments
R=gri, r
CC=golang-dev, rsc
http://codereview.appspot.com/819042
Committer: Rob Pike <r@golang.org>
Diffstat (limited to 'src/cmd/godoc')
-rw-r--r-- | src/cmd/godoc/godoc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/godoc/godoc.go b/src/cmd/godoc/godoc.go index 9c59db287..1bfb15387 100644 --- a/src/cmd/godoc/godoc.go +++ b/src/cmd/godoc/godoc.go @@ -782,7 +782,7 @@ func paddingFmt(w io.Writer, x interface{}, format string) { // Template formatter for "time" format. func timeFmt(w io.Writer, x interface{}, format string) { - // note: os.Dir.Mtime_ns is in uint64 in ns! + // note: os.FileInfo.Mtime_ns is in uint64 in ns! template.HTMLEscape(w, []byte(time.SecondsToLocalTime(int64(x.(uint64)/1e9)).String())) } @@ -880,7 +880,7 @@ func servePage(c *http.Conn, title, subtitle, query string, content []byte) { Title string Subtitle string PkgRoots []string - Timestamp uint64 // int64 to be compatible with os.Dir.Mtime_ns + Timestamp uint64 // int64 to be compatible with os.FileInfo.Mtime_ns Query string Version string Menu []byte |