Skip to content

Commit 54142af

Browse files
Fix documentation issues
1 parent ed4a088 commit 54142af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rand_distr/src/geometric.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ impl Distribution<u64> for Geometric
143143
///
144144
/// See [`Geometric`](crate::Geometric) for the general geometric distribution.
145145
///
146-
/// Implemented via iterated [Rng::gen::<u64>().leading_zeros()].
146+
/// Implemented via iterated
147+
/// [`Rng::gen::<u64>().leading_zeros()`](Rng::gen::<u64>().leading_zeros()).
147148
///
148149
/// # Example
149150
/// ```

src/distributions/uniform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
//! `low < high`). The example below merely wraps another back-end.
5353
//!
5454
//! The `new`, `new_inclusive` and `sample_single` functions use arguments of
55-
//! type SampleBorrow<X> to support passing in values by reference or
55+
//! type `SampleBorrow<X>` to support passing in values by reference or
5656
//! by value. In the implementation of these functions, you can choose to
5757
//! simply use the reference returned by [`SampleBorrow::borrow`], or you can choose
5858
//! to copy or clone the value, whatever is appropriate for your type.

0 commit comments

Comments
 (0)