From 39a335e6905636a6e5ad5bfd52a70ccbbb9a3bd3 Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Wed, 11 May 2022 21:36:10 +0200 Subject: [PATCH] hashing: Fix up comments --- internal/hashing/reader.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/hashing/reader.go b/internal/hashing/reader.go index 661a76a43..073d60932 100644 --- a/internal/hashing/reader.go +++ b/internal/hashing/reader.go @@ -5,14 +5,13 @@ import ( "io" ) -// Reader hashes all data read from the underlying reader. +// A Reader hashes all data read from the underlying reader. type Reader struct { r io.Reader h hash.Hash } -// NewReader returns a new Reader that uses the hash h. If the underlying -// reader supports WriteTo then the returned reader will do so too. +// NewReader returns a new Reader that uses the hash h. func NewReader(r io.Reader, h hash.Hash) *Reader { return &Reader{r: r, h: h} }