From 6f576e2c6f745ec013802eb79daac3d926eb1e51 Mon Sep 17 00:00:00 2001 From: Bartlomiej Plotka Date: Sun, 13 Aug 2023 15:11:06 +0200 Subject: [PATCH] histogram docs: Fixed minor nit. (#1324) Signed-off-by: bwplotka --- prometheus/histogram.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/histogram.go b/prometheus/histogram.go index a6ec4de..6e9b44f 100644 --- a/prometheus/histogram.go +++ b/prometheus/histogram.go @@ -413,8 +413,8 @@ type HistogramOpts struct { // and 2, same as between 2 and 4, and 4 and 8, etc.). // // Details about the actually used factor: The factor is calculated as - // 2^(2^n), where n is an integer number between (and including) -8 and - // 4. n is chosen so that the resulting factor is the largest that is + // 2^(2^-n), where n is an integer number between (and including) -4 and + // 8. n is chosen so that the resulting factor is the largest that is // still smaller or equal to NativeHistogramBucketFactor. Note that the // smallest possible factor is therefore approx. 1.00271 (i.e. 2^(2^-8) // ). If NativeHistogramBucketFactor is greater than 1 but smaller than