From 2d1fe758bbac52b3605e9f519bbaac714f0d92c9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 28 Mar 2026 16:16:28 +0000 Subject: object/store/{loose,packed}: TIghten language around Adler-32 --- object/store/loose/read_bytes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'object/store/loose/read_bytes.go') diff --git a/object/store/loose/read_bytes.go b/object/store/loose/read_bytes.go index 87a9f020..5ed3b82b 100644 --- a/object/store/loose/read_bytes.go +++ b/object/store/loose/read_bytes.go @@ -30,8 +30,8 @@ func (store *Store) readBytesParsed(id objectid.ObjectID) ([]byte, objecttype.Ty // ReadBytesFull reads a full serialized object as "type size\0content". // -// It inflates and parses the full loose object, including consuming the zlib -// stream through its Adler-32 trailer. +// It inflates and parses the full loose object, including verifying the zlib +// Adler-32 trailer. func (store *Store) ReadBytesFull(id objectid.ObjectID) ([]byte, error) { raw, _, _, err := store.readBytesParsed(id) if err != nil { @@ -44,7 +44,7 @@ func (store *Store) ReadBytesFull(id objectid.ObjectID) ([]byte, error) { // ReadBytesContent reads an object's type and content bytes. // // Like ReadBytesFull, it inflates and parses the full loose object, including -// consuming the zlib stream through its Adler-32 trailer. +// verifying the zlib Adler-32 trailer. func (store *Store) ReadBytesContent(id objectid.ObjectID) (objecttype.Type, []byte, error) { _, ty, content, err := store.readBytesParsed(id) if err != nil { -- cgit v1.3.1-10-gc9f91