aboutsummaryrefslogtreecommitdiff
path: root/objectstore/objectstore.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-22 14:01:18 +0800
committerGravatar Runxi Yu2026-02-22 14:01:18 +0800
commitfabf75c8123756db8b2a6013375396e0b8847bac (patch)
tree8bd2f8626d195be5b45529199cc255002a57741a /objectstore/objectstore.go
parentshow-object: Fix defer (diff)
signatureNo signature
*: Fix the broken comments for overescaping that python script
Diffstat (limited to 'objectstore/objectstore.go')
-rw-r--r--objectstore/objectstore.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/objectstore/objectstore.go b/objectstore/objectstore.go
index d52f88ed..7ff5d809 100644
--- a/objectstore/objectstore.go
+++ b/objectstore/objectstore.go
@@ -15,7 +15,7 @@ var ErrObjectNotFound = errors.New("objectstore: object not found")
// Store reads Git objects by object ID.
type Store interface {
- // ReadBytesFull reads a full serialized object as "type size\\x00content".
+ // ReadBytesFull reads a full serialized object as "type size\0content".
//
// In a valid repository, hashing this payload with the same algorithm yields
// the requested object ID. Readers should treat this as a repository
@@ -23,7 +23,7 @@ type Store interface {
ReadBytesFull(id objectid.ObjectID) ([]byte, error)
// ReadBytesContent reads an object's type and content bytes.
ReadBytesContent(id objectid.ObjectID) (objecttype.Type, []byte, error)
- // ReadReaderFull reads a full serialized object stream as "type size\\x00content".
+ // ReadReaderFull reads a full serialized object stream as "type size\0content".
// Caller must close the returned reader.
ReadReaderFull(id objectid.ObjectID) (io.ReadCloser, error)
// ReadReaderContent reads an object's type, declared content length,