From 7b9bda23c4f8424d4e60428668431f5d15f4110a Mon Sep 17 00:00:00 2001 From: "lightclient@protonmail.com" Date: Tue, 23 May 2023 14:11:59 +0200 Subject: [PATCH] internal/era: better doc comment --- internal/era/e2store/e2store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/era/e2store/e2store.go b/internal/era/e2store/e2store.go index e5337ce788..e1a85f6bc4 100644 --- a/internal/era/e2store/e2store.go +++ b/internal/era/e2store/e2store.go @@ -112,8 +112,8 @@ func (r *Reader) ReadAt(entry *Entry, off int64) (int, error) { return int(headerSize + length), nil } -// Reads the header at off and returns the total length of the entry, including -// header. +// LengthAt reads the header at off and returns the total length of the entry, +// including header. func (r *Reader) LengthAt(off int64) (int64, error) { _, length, err := r.ReadMetadataAt(off) if err != nil {