mirror of
https://github.com/golang/go
synced 2024-11-23 04:50:06 -07:00
hash: tweak the package docs
No semantic change. I found the wording distracting in a couple of instances and was moved to improve it. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/10478048
This commit is contained in:
parent
a054028471
commit
feab3f4986
@ -9,7 +9,7 @@ import "io"
|
|||||||
|
|
||||||
// Hash is the common interface implemented by all hash functions.
|
// Hash is the common interface implemented by all hash functions.
|
||||||
type Hash interface {
|
type Hash interface {
|
||||||
// Write adds more data to the running hash.
|
// Write (via the embedded io.Writer interface) adds more data to the running hash.
|
||||||
// It never returns an error.
|
// It never returns an error.
|
||||||
io.Writer
|
io.Writer
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ type Hash interface {
|
|||||||
// It does not change the underlying hash state.
|
// It does not change the underlying hash state.
|
||||||
Sum(b []byte) []byte
|
Sum(b []byte) []byte
|
||||||
|
|
||||||
// Reset resets the hash to one with zero bytes written.
|
// Reset resets the Hash to its initial state.
|
||||||
Reset()
|
Reset()
|
||||||
|
|
||||||
// Size returns the number of bytes Sum will return.
|
// Size returns the number of bytes Sum will return.
|
||||||
|
Loading…
Reference in New Issue
Block a user