From 9ddb21fccb829d5a0c01492901ffdc912b2eeb4b Mon Sep 17 00:00:00 2001 From: jingchanglu Date: Thu, 10 Jul 2025 14:43:25 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: jingchanglu --- model/histogram/float_histogram.go | 2 +- web/api/v1/json_codec.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/model/histogram/float_histogram.go b/model/histogram/float_histogram.go index 92f084bdf6..55ffbc08b3 100644 --- a/model/histogram/float_histogram.go +++ b/model/histogram/float_histogram.go @@ -975,7 +975,7 @@ func (h *FloatHistogram) floatBucketIterator( return i } -// reverseFloatBucketIterator is a low-level constructor for reverse bucket iterators. +// newReverseFloatBucketIterator is a low-level constructor for reverse bucket iterators. func newReverseFloatBucketIterator( spans []Span, buckets []float64, schema int32, positive bool, customValues []float64, ) reverseFloatBucketIterator { diff --git a/web/api/v1/json_codec.go b/web/api/v1/json_codec.go index 6bd095a8f3..8dcfd8a062 100644 --- a/web/api/v1/json_codec.go +++ b/web/api/v1/json_codec.go @@ -51,7 +51,7 @@ func (j JSONCodec) Encode(resp *Response) ([]byte, error) { return json.Marshal(resp) } -// marshalSeriesJSON writes something like the following: +// unsafeMarshalSeriesJSON writes something like the following: // // { // "metric" : { @@ -108,7 +108,7 @@ func neverEmpty(unsafe.Pointer) bool { return false } -// marshalSampleJSON writes something like the following for normal value samples: +// unsafeMarshalSampleJSON writes something like the following for normal value samples: // // { // "metric" : {