aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/hash/hash.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/hash/hash.go')
-rw-r--r--libgo/go/hash/hash.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/hash/hash.go b/libgo/go/hash/hash.go
index aa895cf..8d138d0 100644
--- a/libgo/go/hash/hash.go
+++ b/libgo/go/hash/hash.go
@@ -9,7 +9,7 @@ import "io"
// Hash is the common interface implemented by all hash functions.
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.
io.Writer
@@ -17,7 +17,7 @@ type Hash interface {
// It does not change the underlying hash state.
Sum(b []byte) []byte
- // Reset resets the hash to one with zero bytes written.
+ // Reset resets the Hash to its initial state.
Reset()
// Size returns the number of bytes Sum will return.