Mention bucket values in the comment
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
This commit is contained in:
parent
ec823d9daf
commit
62bbb81e29
|
@ -307,8 +307,8 @@ func (h *FloatHistogram) Sub(other *FloatHistogram) *FloatHistogram {
|
||||||
// Exact match is when there are no new buckets (even empty) and no missing buckets,
|
// 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,
|
// 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.
|
// but they must represent the same bucket layout to match.
|
||||||
// Sum, Count, and ZeroCount are compared based on their bit patterns because this method
|
// Sum, Count, ZeroCount and bucket values are compared based on their bit patterns
|
||||||
// is about data equality rather than mathematical equality.
|
// because this method is about data equality rather than mathematical equality.
|
||||||
func (h *FloatHistogram) Equals(h2 *FloatHistogram) bool {
|
func (h *FloatHistogram) Equals(h2 *FloatHistogram) bool {
|
||||||
if h2 == nil {
|
if h2 == nil {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue