]> Cypherpunks repositories - gostls13.git/commitdiff
hash/maphash: use correct method name in comment
authorj178 <sherlockjoe8@gmail.com>
Thu, 7 Apr 2022 02:44:08 +0000 (02:44 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 7 Apr 2022 05:42:16 +0000 (05:42 +0000)
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 <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>

src/hash/maphash/maphash.go

index 973fb6870180b50b16b1a8bc8d8eea92738d36e7..ffd488fa1708f76e51ab2380fa02343128633f0d 100644 (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 {