From 7afca5966e5e77e5e595d4aba20fa619fe1070e8 Mon Sep 17 00:00:00 2001 From: Luke Champine Date: Mon, 21 Mar 2022 13:09:24 -0400 Subject: [PATCH] clarify 'size' parameter in New docstring --- blake3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blake3.go b/blake3.go index 7bf5dc5..3617411 100644 --- a/blake3.go +++ b/blake3.go @@ -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)