From d96e2195274eb9451702d1682c016605842e2f8f Mon Sep 17 00:00:00 2001 From: Benjamin Lieser Date: Wed, 13 Nov 2024 11:53:57 +0100 Subject: [PATCH] fix comment --- rand_distr/src/hypergeometric.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_distr/src/hypergeometric.rs b/rand_distr/src/hypergeometric.rs index 71a5855a98..f446357530 100644 --- a/rand_distr/src/hypergeometric.rs +++ b/rand_distr/src/hypergeometric.rs @@ -131,7 +131,7 @@ fn fraction_of_products_of_factorials(numerator: (u64, u64), denominator: (u64, result } -const LOGSQRT2PI: f64 = 0.91893853320467274178; // log(sqrt(2)*pi) +const LOGSQRT2PI: f64 = 0.91893853320467274178; // log(sqrt(2*pi)) fn ln_of_factorial(v: f64) -> f64 { // the paper calls for ln(v!), but also wants to pass in fractions,