mirror of
https://github.com/golang/go
synced 2024-11-24 08:20:03 -07:00
hash/maphash: use correct method name in comment
This commit is contained in:
parent
9a6acc83c8
commit
d2ec8fe536
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user