From: j178 Date: Thu, 7 Apr 2022 02:44:08 +0000 (+0000) Subject: hash/maphash: use correct method name in comment X-Git-Tag: go1.19beta1~743 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=870256ec891421d9d68365f65e48d270e16958bb;p=gostls13.git hash/maphash: use correct method name in comment Change-Id: I01a3a5232525683c987b52ab8ece3fc18b6f431b GitHub-Last-Rev: d2ec8fe536c7a1cdbd23017185447a86bee5a82a GitHub-Pull-Request: golang/go#52194 Reviewed-on: https://go-review.googlesource.com/c/go/+/398714 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Auto-Submit: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Daniel Martí Trust: Daniel Martí --- diff --git a/src/hash/maphash/maphash.go b/src/hash/maphash/maphash.go index 973fb68701..ffd488fa17 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 {