Skip to content

Commit

Permalink
Merge pull request #1127 from jakevossen5/master
Browse files Browse the repository at this point in the history
fixed broken link to sample_iter
  • Loading branch information
vks committed May 14, 2021
2 parents 36234a5 + 35b098e commit d9a8e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distributions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mod utils;
/// of The Rust Rand Book. In some cases this does not apply, e.g. the `usize`
/// type requires different sampling on 32-bit and 64-bit machines.
///
/// [`sample_iter`]: Distribution::method.sample_iter
/// [`sample_iter`]: Distribution::sample_iter
pub trait Distribution<T> {
/// Generate a random value of `T`, using `rng` as the source of randomness.
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> T;
Expand Down

0 comments on commit d9a8e16

Please sign in to comment.