From 6fdb6db4811a7b19742fec556fd5a1d5002b4e5e Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Wed, 7 Aug 2024 08:29:14 +0200 Subject: [PATCH] hash: mention encoding.BinaryAppender in Hash docs --- src/hash/hash.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hash/hash.go b/src/hash/hash.go index 82c81034ff..08a0c6764c 100644 --- a/src/hash/hash.go +++ b/src/hash/hash.go @@ -10,8 +10,8 @@ import "io" // Hash is the common interface implemented by all hash functions. // // Hash implementations in the standard library (e.g. [hash/crc32] and -// [crypto/sha256]) implement the [encoding.BinaryMarshaler] and -// [encoding.BinaryUnmarshaler] interfaces. Marshaling a hash implementation +// [crypto/sha256]) implement the [encoding.BinaryMarshaler], [encoding.BinaryAppender] +// and [encoding.BinaryUnmarshaler] interfaces. Marshaling a hash implementation // allows its internal state to be saved and used for additional processing // later, without having to re-write the data previously written to the hash. // The hash state may contain portions of the input in its original form,