From b0021aa98a7b12ab467a3641710041b376a0a20c Mon Sep 17 00:00:00 2001 From: Benjamin Lieser Date: Fri, 13 Sep 2024 13:01:56 +0200 Subject: [PATCH] remove the known issue from doc --- rand_distr/src/binomial.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/rand_distr/src/binomial.rs b/rand_distr/src/binomial.rs index d7d5d8cb76..33f3fa0469 100644 --- a/rand_distr/src/binomial.rs +++ b/rand_distr/src/binomial.rs @@ -26,10 +26,6 @@ use rand::Rng; /// /// `f(k) = n!/(k! (n-k)!) p^k (1-p)^(n-k)` for `k >= 0`. /// -/// # Known issues -/// -/// See documentation of [`Binomial::new`]. -/// /// # Plot /// /// The following plot of the binomial distribution illustrates the @@ -106,13 +102,6 @@ impl std::error::Error for Error {} impl Binomial { /// Construct a new `Binomial` with the given shape parameters `n` (number /// of trials) and `p` (probability of success). - /// - /// # Known issues - /// - /// Although this method should return an [`Error`] on invalid parameters, - /// some (extreme) parameter combinations are known to return a [`Binomial`] - /// object which panics when [sampled](Distribution::sample). - /// See [#1378](https://github.com/rust-random/rand/issues/1378). pub fn new(n: u64, p: f64) -> Result { if !(p >= 0.0) { return Err(Error::ProbabilityTooSmall);