Skip to content

Commit 6fd1009

Browse files
authored
Merge pull request #178 from mbrubeck/doc
Fix formatting warnings with commonmark enabled
2 parents cbfb7cf + 9d44ab6 commit 6fd1009

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/distributions/gamma.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ impl IndependentSample<f64> for GammaLargeShape {
185185
///
186186
/// For `k > 0` integral, this distribution is the sum of the squares
187187
/// of `k` independent standard normal random variables. For other
188-
/// `k`, this uses the equivalent characterisation `χ²(k) = Gamma(k/2,
189-
/// 2)`.
188+
/// `k`, this uses the equivalent characterisation
189+
/// `χ²(k) = Gamma(k/2, 2)`.
190190
///
191191
/// # Example
192192
///

src/distributions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ impl<'a, T: Clone> WeightedChoice<'a, T> {
123123
/// Create a new `WeightedChoice`.
124124
///
125125
/// Panics if:
126+
///
126127
/// - `v` is empty
127128
/// - the total weight is 0
128129
/// - the total weight is larger than a `u32` can contain.

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ pub trait Rng {
354354
/// See:
355355
/// A PRNG specialized in double precision floating point numbers using
356356
/// an affine transition
357-
/// http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/ARTICLES/dSFMT.pdf
358-
/// http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-slide-e.pdf
357+
///
358+
/// * <http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/ARTICLES/dSFMT.pdf>
359+
/// * <http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-slide-e.pdf>
359360
///
360361
/// By default this is implemented in terms of `next_u32`, but a
361362
/// random number generator which can generate numbers satisfying

src/os.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ use Rng;
3030
/// Max OS X, and modern Linux) this may block very early in the init
3131
/// process, if the CSPRNG has not been seeded yet.[1]
3232
///
33-
/// [1] See https://www.python.org/dev/peps/pep-0524/ for a more in-depth
34-
/// discussion.
33+
/// [1] See <https://www.python.org/dev/peps/pep-0524/> for a more
34+
/// in-depth discussion.
3535
pub struct OsRng(imp::OsRng);
3636

3737
impl OsRng {

0 commit comments

Comments
 (0)