Commit ca7d86c4 authored by Andrew Gerrand's avatar Andrew Gerrand

hash: rewrite comment on Hash.Sum method

Fixes #2530.

R=golang-dev, agl
CC=golang-dev
https://golang.org/cl/5449101
parent 2ed57a8c
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment