]> Cypherpunks repositories - gostls13.git/commitdiff
godoc: change od.Dir -> os.FileInfo in comments
authorChristopher Wedgwood <cw@f00f.org>
Sun, 11 Apr 2010 17:17:45 +0000 (10:17 -0700)
committerRob Pike <r@golang.org>
Sun, 11 Apr 2010 17:17:45 +0000 (10:17 -0700)
R=gri, r
CC=golang-dev, rsc
https://golang.org/cl/819042

src/cmd/godoc/godoc.go

index 9c59db287abdeec82d5d3604e5caea4e1b0d6caf..1bfb153876cf19405ac273da408150aa2b44e62e 100644 (file)
@@ -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