From c8c03ff85bd820e95bcff56795d62bb321b8c934 Mon Sep 17 00:00:00 2001 From: JoeWrightss <42261994+JoeWrightss@users.noreply.github.com> Date: Fri, 7 Dec 2018 17:24:02 +0800 Subject: [PATCH] fix some typos (#466) Signed-off-by: JoeWrightss --- repair.go | 2 +- wal.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repair.go b/repair.go index fd40cbb5a..15f79d5f7 100644 --- a/repair.go +++ b/repair.go @@ -71,7 +71,7 @@ func repairBadIndexVersion(logger log.Logger, dir string) error { if _, err := io.Copy(repl, broken); err != nil { return wrapErr(err, d) } - // Set the 5th byte to 2 to indiciate the correct file format version. + // Set the 5th byte to 2 to indicate the correct file format version. if _, err := repl.WriteAt([]byte{2}, 4); err != nil { return wrapErr(err, d) } diff --git a/wal.go b/wal.go index 28217639d..684a2fa6a 100644 --- a/wal.go +++ b/wal.go @@ -322,7 +322,7 @@ func (w *SegmentWAL) putBuffer(b *encbuf) { } // Truncate deletes the values prior to mint and the series which the keep function -// does not indiciate to preserve. +// does not indicate to preserve. func (w *SegmentWAL) Truncate(mint int64, keep func(uint64) bool) error { // The last segment is always active. if len(w.files) < 2 {