Skip to content

Commit 6f576e2

Browse files
authored
histogram docs: Fixed minor nit. (#1324)
Signed-off-by: bwplotka <[email protected]>
1 parent 1a88780 commit 6f576e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus/histogram.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ type HistogramOpts struct {
413413
// and 2, same as between 2 and 4, and 4 and 8, etc.).
414414
//
415415
// Details about the actually used factor: The factor is calculated as
416-
// 2^(2^n), where n is an integer number between (and including) -8 and
417-
// 4. n is chosen so that the resulting factor is the largest that is
416+
// 2^(2^-n), where n is an integer number between (and including) -4 and
417+
// 8. n is chosen so that the resulting factor is the largest that is
418418
// still smaller or equal to NativeHistogramBucketFactor. Note that the
419419
// smallest possible factor is therefore approx. 1.00271 (i.e. 2^(2^-8)
420420
// ). If NativeHistogramBucketFactor is greater than 1 but smaller than

0 commit comments

Comments
 (0)