From 1487a1058947ddbebd7537dafba3cb71f6c9c707 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 6 Jun 2026 20:31:50 +0000 Subject: object/store: Go does not accept \0 --- object/store/reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object/store/reader.go') diff --git a/object/store/reader.go b/object/store/reader.go index b1867791..30a78f7f 100644 --- a/object/store/reader.go +++ b/object/store/reader.go @@ -15,7 +15,7 @@ import ( // // Labels: MT-Safe. type ObjectReader interface { - // ReadBytesFull reads a full serialized object as "type size\0content". + // ReadBytesFull reads a full serialized object as "type size\x00content". // // In a valid repository, // hashing this payload with the same object format @@ -32,7 +32,7 @@ type ObjectReader interface { ReadBytesContent(id id.ObjectID) (typ.Type, []byte, error) // ReadReaderFull reads a full serialized object stream - // as "type size\0content". + // as "type size\x00content". // // Labels: Life-Parent, Close-Caller. ReadReaderFull(id id.ObjectID) (io.ReadCloser, error) -- cgit v1.3.1-10-gc9f91