caio.co/de/go-tdigest

Fix comment for AddWeighted

Id
c8f1a74b6af86bd8951e85903528dff8ceff0877
Author
Michael Coopersmith
Commit time
2023-12-23T12:58:25-05:00

Modified tdigest.go

@@ -155,7 +155,7
// when you are registering a sample that occurred multiple times - the
// most common value for this is 1.
//
-// This will emit an error if `value` is NaN of if `count` is zero.
+// This will emit an error if `value` is NaN or if `count` is zero.
func (t *TDigest) AddWeighted(value float64, count uint64) (err error) {
if count == 0 {
return fmt.Errorf("Illegal datapoint <value: %.4f, count: %d>", value, count)