internal/era: better doc comment

This commit is contained in:
lightclient@protonmail.com 2023-05-23 14:11:59 +02:00 committed by lightclient
parent cccf47b4f4
commit 7b9bda23c4
No known key found for this signature in database
GPG key ID: 75C916AFEE20183E

View file

@ -112,8 +112,8 @@ func (r *Reader) ReadAt(entry *Entry, off int64) (int, error) {
return int(headerSize + length), nil return int(headerSize + length), nil
} }
// Reads the header at off and returns the total length of the entry, including // LengthAt reads the header at off and returns the total length of the entry,
// header. // including header.
func (r *Reader) LengthAt(off int64) (int64, error) { func (r *Reader) LengthAt(off int64) (int64, error) {
_, length, err := r.ReadMetadataAt(off) _, length, err := r.ReadMetadataAt(off)
if err != nil { if err != nil {