Skip to content

Commit

Permalink
Clarify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Apr 5, 2019
1 parent 095b2c3 commit ef5d95b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/distributions/mod.rs
Expand Up @@ -241,7 +241,8 @@ pub trait Distribution<T> {
/// `(&mut R): Rng where R: Rng` and
/// `(&D): Distribution where D: Distribution`,
/// however borrowing is not automatic hence `distr.sample_iter(...)` may
/// need to be replaced with `(&mut distr).sample_iter(...)`.
/// need to be replaced with `(&mut distr).sample_iter(...)` or
/// `(&mut *distr).sample_iter(...)` to reborrow an existing reference.
///
/// # Example
///
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Expand Up @@ -272,7 +272,8 @@ pub trait Rng: RngCore {
/// `(&mut R): Rng where R: Rng` and
/// `(&D): Distribution where D: Distribution`,
/// however borrowing is not automatic hence `rng.sample_iter(...)` may
/// need to be replaced with `(&mut rng).sample_iter(...)`.
/// need to be replaced with `(&mut rng).sample_iter(...)` or
/// `(&mut *rng).sample_iter(...)` to reborrow an existing reference.
///
/// # Example
///
Expand Down

0 comments on commit ef5d95b

Please sign in to comment.