From: Christopher Wedgwood Date: Sun, 11 Apr 2010 17:17:45 +0000 (-0700) Subject: godoc: change od.Dir -> os.FileInfo in comments X-Git-Tag: weekly.2010-04-13~23 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=094732f7eb51544b80b762bc59e92e90b735d934;p=gostls13.git godoc: change od.Dir -> os.FileInfo in comments R=gri, r CC=golang-dev, rsc https://golang.org/cl/819042 --- diff --git a/src/cmd/godoc/godoc.go b/src/cmd/godoc/godoc.go index 9c59db287a..1bfb153876 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