From 5e906cc09ad46c1914015d029ea3931a021963ff Mon Sep 17 00:00:00 2001 From: Guangwen Feng Date: Fri, 10 Jan 2020 18:11:30 +0800 Subject: [PATCH] Fix typo in comment for func AddPadding Signed-off-by: Guangwen Feng --- tsdb/index/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/index/index.go b/tsdb/index/index.go index b4da89ce2..d96a6ab44 100644 --- a/tsdb/index/index.go +++ b/tsdb/index/index.go @@ -298,7 +298,7 @@ func (fw *FileWriter) WriteAt(buf []byte, pos uint64) error { return err } -// addPadding adds zero byte padding until the file size is a multiple size. +// AddPadding adds zero byte padding until the file size is a multiple size. func (fw *FileWriter) AddPadding(size int) error { p := fw.pos % uint64(size) if p == 0 {