mirror of
https://github.com/golang/go
synced 2024-11-24 09:00:13 -07:00
hash/maphash: use correct method name in comment
Change-Id: I01a3a5232525683c987b52ab8ece3fc18b6f431b
GitHub-Last-Rev: d2ec8fe536
GitHub-Pull-Request: golang/go#52194
Reviewed-on: https://go-review.googlesource.com/c/go/+/398714
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Trust: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
parent
9a6acc83c8
commit
870256ec89
@ -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