aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--objectstore/loose/read_reader.go2
-rw-r--r--objectstore/objectstore.go4
-rw-r--r--repository/read_stored_passthrough.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/objectstore/loose/read_reader.go b/objectstore/loose/read_reader.go
index ca7c519c..6a377ba3 100644
--- a/objectstore/loose/read_reader.go
+++ b/objectstore/loose/read_reader.go
@@ -47,7 +47,7 @@ func (store *Store) openInflated(id objectid.ObjectID) (*os.File, io.ReadCloser,
return file, zr, nil
}
-// ReadReaderFull reads a full serialized object stream as "type size\\x00content".
+// ReadReaderFull reads a full serialized object stream as "type size\0content".
// The caller must close the returned reader.
func (store *Store) ReadReaderFull(id objectid.ObjectID) (io.ReadCloser, error) {
file, zr, err := store.openInflated(id)
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,
diff --git a/repository/read_stored_passthrough.go b/repository/read_stored_passthrough.go
index 4576eb9f..29cb8565 100644
--- a/repository/read_stored_passthrough.go
+++ b/repository/read_stored_passthrough.go
@@ -17,7 +17,7 @@ func (repo *Repository) ReadStoredSize(id objectid.ObjectID) (int64, error) {
return repo.objects.ReadSize(id)
}
-// ReadStoredBytesFull reads a full serialized object as "type size\\x00content".
+// ReadStoredBytesFull reads a full serialized object as "type size\0content".
func (repo *Repository) ReadStoredBytesFull(id objectid.ObjectID) ([]byte, error) {
return repo.objects.ReadBytesFull(id)
}