]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/cache: fix wrong/old function name in comment
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 8 Nov 2018 20:06:05 +0000 (20:06 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 9 Nov 2018 05:36:50 +0000 (05:36 +0000)
Change-Id: Ia0caf2fb06097ac184f78779334460900e8c0149
Reviewed-on: https://go-review.googlesource.com/c/148580
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/cache/hash.go

index 0e45e7db5478bded54657517f3f23c786d5a5d7f..e4bb2a34bb4a1a371193864fb8b24139b52bd16c 100644 (file)
@@ -123,7 +123,7 @@ var hashFileCache struct {
        m map[string][HashSize]byte
 }
 
-// HashFile returns the hash of the named file.
+// FileHash returns the hash of the named file.
 // It caches repeated lookups for a given file,
 // and the cache entry for a file can be initialized
 // using SetFileHash.