From 094732f7eb51544b80b762bc59e92e90b735d934 Mon Sep 17 00:00:00 2001 From: Christopher Wedgwood Date: Sun, 11 Apr 2010 10:17:45 -0700 Subject: [PATCH] godoc: change od.Dir -> os.FileInfo in comments R=gri, r CC=golang-dev, rsc https://golang.org/cl/819042 --- src/cmd/godoc/godoc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/godoc/godoc.go b/src/cmd/godoc/godoc.go index 9c59db287ab..1bfb153876c 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