1
0
mirror of https://github.com/golang/go synced 2024-11-17 06:04:47 -07:00

hash/maphash: use correct method name in comment

This commit is contained in:
j178 2022-04-07 07:48:30 +08:00
parent 9a6acc83c8
commit d2ec8fe536

View File

@ -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 {