From 0a15e81f5d90492f5756a52abf6aefe13ed59e32 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 15 Jul 2023 14:38:48 +0200 Subject: [PATCH] Fix documentation issues --- rand_distr/src/geometric.rs | 3 ++- src/distributions/uniform.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rand_distr/src/geometric.rs b/rand_distr/src/geometric.rs index 3ea8b8f3e13..b8b396dd443 100644 --- a/rand_distr/src/geometric.rs +++ b/rand_distr/src/geometric.rs @@ -143,7 +143,8 @@ impl Distribution for Geometric /// /// See [`Geometric`](crate::Geometric) for the general geometric distribution. /// -/// Implemented via iterated [Rng::gen::().leading_zeros()]. +/// Implemented via iterated +/// [`Rng::gen::().leading_zeros()`](Rng::gen::().leading_zeros()). /// /// # Example /// ``` diff --git a/src/distributions/uniform.rs b/src/distributions/uniform.rs index 713961e8e0c..05bb1b60434 100644 --- a/src/distributions/uniform.rs +++ b/src/distributions/uniform.rs @@ -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 to support passing in values by reference or +//! type `SampleBorrow` 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.