Skip to content

Commit

Permalink
Merge pull request #1204 from xu-cheng/uniform-example
Browse files Browse the repository at this point in the history
rand: fix incorrect example in Uniform
  • Loading branch information
vks authored Dec 6, 2021
2 parents f8106ef + 743661e commit 1a880aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/distributions/uniform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@
//! where B1: SampleBorrow<Self::X> + Sized,
//! B2: SampleBorrow<Self::X> + Sized
//! {
//! UniformSampler::new(low, high)
//! UniformMyF32(UniformFloat::<f32>::new_inclusive(
//! low.borrow().0,
//! high.borrow().0,
//! ))
//! }
//! fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Self::X {
//! MyF32(self.0.sample(rng))
Expand Down

0 comments on commit 1a880aa

Please sign in to comment.