diff options
author | Andrew Gerrand <adg@golang.org> | 2011-12-06 14:12:09 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2011-12-06 14:12:09 +1100 |
commit | ca7d86c4d3e15716ae7aa3d7ba84769218571460 (patch) | |
tree | 56221ea677abec04aacedd4e5dd0a9655b1cab21 | |
parent | 2ed57a8cd86cec36b8370fb16d450e5a29a9375f (diff) | |
download | go-ca7d86c4d3e15716ae7aa3d7ba84769218571460.tar.gz go-ca7d86c4d3e15716ae7aa3d7ba84769218571460.zip |
hash: rewrite comment on Hash.Sum method
Fixes #2530.
R=golang-dev, agl
CC=golang-dev
https://golang.org/cl/5449101
-rw-r--r-- | src/pkg/hash/hash.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/hash/hash.go b/src/pkg/hash/hash.go index 0d7765dc50..8598f4e1b8 100644 --- a/src/pkg/hash/hash.go +++ b/src/pkg/hash/hash.go @@ -13,9 +13,9 @@ type Hash interface { // It never returns an error. io.Writer - // Sum appends the current hash in the same manner as append(), without - // changing the underlying hash state. - Sum(in []byte) []byte + // Sum appends the current hash to b and returns the resulting slice. + // It does not change the underlying hash state. + Sum(b []byte) []byte // Reset resets the hash to one with zero bytes written. Reset() |