Skip to content

Commit

Permalink
clarify 'size' parameter in New docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine authored Mar 21, 2022
1 parent bb7ece4 commit 7afca59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blake3.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ func newHasher(key [8]uint32, flags uint32, size int) *Hasher {
}
}

// New returns a Hasher for the specified size and key. If key is nil, the hash
// is unkeyed. Otherwise, len(key) must be 32.
// New returns a Hasher for the specified digest size and key. If key is nil,
// the hash is unkeyed. Otherwise, len(key) must be 32.
func New(size int, key []byte) *Hasher {
if key == nil {
return newHasher(iv, 0, size)
Expand Down

0 comments on commit 7afca59

Please sign in to comment.