Expand docs comments

Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
This commit is contained in:
Linas Medziunas 2023-09-28 09:08:09 +03:00
parent dfb6292600
commit 3c047a3518
2 changed files with 2 additions and 0 deletions

View File

@ -307,6 +307,7 @@ func (h *FloatHistogram) Sub(other *FloatHistogram) *FloatHistogram {
// Exact match is when there are no new buckets (even empty) and no missing buckets,
// and all the bucket values match. Spans can have different empty length spans in between,
// but they must represent the same bucket layout to match.
// Non-metadata float fields (Sum, Count, ZeroCount) are compared as binary (using math.Float64bits).
func (h *FloatHistogram) Equals(h2 *FloatHistogram) bool {
if h2 == nil {
return false

View File

@ -172,6 +172,7 @@ func (h *Histogram) CumulativeBucketIterator() BucketIterator[uint64] {
// Exact match is when there are no new buckets (even empty) and no missing buckets,
// and all the bucket values match. Spans can have different empty length spans in between,
// but they must represent the same bucket layout to match.
// Non-metadata float field (Sum) is compared as binary (using math.Float64bits).
func (h *Histogram) Equals(h2 *Histogram) bool {
if h2 == nil {
return false