From d2ec8fe536c7a1cdbd23017185447a86bee5a82a Mon Sep 17 00:00:00 2001 From: j178 Date: Thu, 7 Apr 2022 07:48:30 +0800 Subject: [PATCH] hash/maphash: use correct method name in comment --- src/hash/maphash/maphash.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hash/maphash/maphash.go b/src/hash/maphash/maphash.go index 973fb687018..ffd488fa170 100644 --- a/src/hash/maphash/maphash.go +++ b/src/hash/maphash/maphash.go @@ -40,7 +40,7 @@ type Seed struct { // var h Hash // h.SetSeed(seed) // h.Write(b) -// return h.Sum() +// return h.Sum64() func Bytes(seed Seed, b []byte) uint64 { state := seed.s if state == 0 { @@ -66,7 +66,7 @@ func Bytes(seed Seed, b []byte) uint64 { // var h Hash // h.SetSeed(seed) // h.WriteString(s) -// return h.Sum() +// return h.Sum64() func String(seed Seed, s string) uint64 { state := seed.s if state == 0 {