From 314aa45c2ced676d6a76d5ce9333a60faa331570 Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Sun, 28 Aug 2022 04:21:41 +0800 Subject: [PATCH] chore: remove duplicate word in comments (#11225) Signed-off-by: Abirdcfly Signed-off-by: Abirdcfly --- tsdb/db.go | 2 +- tsdb/encoding/encoding.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tsdb/db.go b/tsdb/db.go index 0678a6ea9..00c1bceed 100644 --- a/tsdb/db.go +++ b/tsdb/db.go @@ -318,7 +318,7 @@ type DBStats struct { } // NewDBStats returns a new DBStats object initialized using the -// the new function from each component. +// new function from each component. func NewDBStats() *DBStats { return &DBStats{ Head: NewHeadStats(), diff --git a/tsdb/encoding/encoding.go b/tsdb/encoding/encoding.go index c2da86afa..1e17c2e37 100644 --- a/tsdb/encoding/encoding.go +++ b/tsdb/encoding/encoding.go @@ -79,7 +79,7 @@ func (e *Encbuf) PutUvarintStr(s string) { e.PutString(s) } -// PutUvarintBytes writes a a variable length byte buffer. +// PutUvarintBytes writes a variable length byte buffer. func (e *Encbuf) PutUvarintBytes(b []byte) { e.PutUvarint(len(b)) e.PutBytes(b)