chore: fix some minor issues in comments

Signed-off-by: socialsister <seekseat@qq.com>
This commit is contained in:
socialsister 2025-07-16 16:13:01 +08:00 committed by Ayoub Mrini
parent a9438f020d
commit 869c946370
2 changed files with 3 additions and 3 deletions

View File

@ -254,7 +254,7 @@ func (a *collectResultAppender) String() string {
}
// protoMarshalDelimited marshals a MetricFamily into a delimited
// Prometheus proto exposition format bytes (known as 'encoding=delimited`)
// Prometheus proto exposition format bytes (known as `encoding=delimited`)
//
// See also https://eli.thegreenplace.net/2011/08/02/length-prefix-framing-for-protocol-buffers
func protoMarshalDelimited(t *testing.T, mf *dto.MetricFamily) []byte {

View File

@ -2148,7 +2148,7 @@ func TestDB_LabelNames(t *testing.T) {
sampleLabels1 [][2]string // For checking head and disk separately.
// To test Head+Disk, sampleLabels2 should have
// at least 1 unique label name which is not in sampleLabels1.
sampleLabels2 [][2]string // // For checking head and disk together.
sampleLabels2 [][2]string // For checking head and disk together.
exp1 []string // after adding sampleLabels1.
exp2 []string // after adding sampleLabels1 and sampleLabels2.
}{
@ -9414,7 +9414,7 @@ func TestGenerateCompactionDelay(t *testing.T) {
type blockedResponseRecorder struct {
r *httptest.ResponseRecorder
// writeblocked is used to block writing until the test wants it to resume.
// writeBlocked is used to block writing until the test wants it to resume.
writeBlocked chan struct{}
// writeStarted is closed by blockedResponseRecorder to signal that writing has started.
writeStarted chan struct{}