mirror of
https://github.com/golang/go
synced 2024-11-17 05:54:46 -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
|
// var h Hash
|
||||||
// h.SetSeed(seed)
|
// h.SetSeed(seed)
|
||||||
// h.Write(b)
|
// h.Write(b)
|
||||||
// return h.Sum()
|
// return h.Sum64()
|
||||||
func Bytes(seed Seed, b []byte) uint64 {
|
func Bytes(seed Seed, b []byte) uint64 {
|
||||||
state := seed.s
|
state := seed.s
|
||||||
if state == 0 {
|
if state == 0 {
|
||||||
@ -66,7 +66,7 @@ func Bytes(seed Seed, b []byte) uint64 {
|
|||||||
// var h Hash
|
// var h Hash
|
||||||
// h.SetSeed(seed)
|
// h.SetSeed(seed)
|
||||||
// h.WriteString(s)
|
// h.WriteString(s)
|
||||||
// return h.Sum()
|
// return h.Sum64()
|
||||||
func String(seed Seed, s string) uint64 {
|
func String(seed Seed, s string) uint64 {
|
||||||
state := seed.s
|
state := seed.s
|
||||||
if state == 0 {
|
if state == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user