Skip to content

Commit

Permalink
Fix documentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 15, 2023
1 parent ed4a088 commit 54142af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rand_distr/src/geometric.rs
Expand Up @@ -143,7 +143,8 @@ impl Distribution<u64> for Geometric
///
/// See [`Geometric`](crate::Geometric) for the general geometric distribution.
///
/// Implemented via iterated [Rng::gen::<u64>().leading_zeros()].
/// Implemented via iterated
/// [`Rng::gen::<u64>().leading_zeros()`](Rng::gen::<u64>().leading_zeros()).
///
/// # Example
/// ```
Expand Down
2 changes: 1 addition & 1 deletion src/distributions/uniform.rs
Expand Up @@ -52,7 +52,7 @@
//! `low < high`). The example below merely wraps another back-end.
//!
//! The `new`, `new_inclusive` and `sample_single` functions use arguments of
//! type SampleBorrow<X> to support passing in values by reference or
//! type `SampleBorrow<X>` to support passing in values by reference or
//! by value. In the implementation of these functions, you can choose to
//! simply use the reference returned by [`SampleBorrow::borrow`], or you can choose
//! to copy or clone the value, whatever is appropriate for your type.
Expand Down

0 comments on commit 54142af

Please sign in to comment.