From e410a215fbe89b67f0e8edef9de25ede503ea4e0 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Fri, 5 Jul 2024 15:23:07 +0200 Subject: [PATCH] Fix a couple of comments Signed-off-by: Arve Knudsen --- tsdb/chunkenc/xor.go | 2 +- tsdb/record/record.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tsdb/chunkenc/xor.go b/tsdb/chunkenc/xor.go index 9430de3964..3177762f81 100644 --- a/tsdb/chunkenc/xor.go +++ b/tsdb/chunkenc/xor.go @@ -60,7 +60,7 @@ type XORChunk struct { b bstream } -// NewXORChunk returns a new chunk with XOR encoding of the given size. +// NewXORChunk returns a new chunk with XOR encoding. func NewXORChunk() *XORChunk { b := make([]byte, 2, 128) return &XORChunk{b: bstream{stream: b, count: 0}} diff --git a/tsdb/record/record.go b/tsdb/record/record.go index c95b25f06e..784d0b23d7 100644 --- a/tsdb/record/record.go +++ b/tsdb/record/record.go @@ -543,7 +543,7 @@ func (d *Decoder) FloatHistogramSamples(rec []byte, histograms []RefFloatHistogr return histograms, nil } -// Decode decodes a Histogram from a byte slice. +// DecodeFloatHistogram decodes a Histogram from a byte slice. func DecodeFloatHistogram(buf *encoding.Decbuf, fh *histogram.FloatHistogram) { fh.CounterResetHint = histogram.CounterResetHint(buf.Byte())