mirror of
https://github.com/golang/go
synced 2024-11-24 16:20:13 -07:00
hash: rewrite comment on Hash.Sum method
Fixes #2530. R=golang-dev, agl CC=golang-dev https://golang.org/cl/5449101
This commit is contained in:
parent
2ed57a8cd8
commit
ca7d86c4d3
@ -13,9 +13,9 @@ type Hash interface {
|
|||||||
// It never returns an error.
|
// It never returns an error.
|
||||||
io.Writer
|
io.Writer
|
||||||
|
|
||||||
// Sum appends the current hash in the same manner as append(), without
|
// Sum appends the current hash to b and returns the resulting slice.
|
||||||
// changing the underlying hash state.
|
// It does not change the underlying hash state.
|
||||||
Sum(in []byte) []byte
|
Sum(b []byte) []byte
|
||||||
|
|
||||||
// Reset resets the hash to one with zero bytes written.
|
// Reset resets the hash to one with zero bytes written.
|
||||||
Reset()
|
Reset()
|
||||||
|
Loading…
Reference in New Issue
Block a user