Skip to content

Commit f3aab23

Browse files
Fix clippy::doc_markdown warnings. (#1474)
1 parent e4874a6 commit f3aab23

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

clippy.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Don't warn about these identifiers when using clippy::doc_markdown.
2+
doc-valid-idents = ["ChaCha", "ChaCha12", "SplitMix64", "ZiB", ".."]

rand_core/src/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<R: CryptoBlockRng + BlockRngCore<Item = u32>> CryptoRng for BlockRng<R> {}
276276
/// then the other half is then consumed, however both [`next_u64`] and
277277
/// [`fill_bytes`] discard the rest of any half-consumed `u64`s when called.
278278
///
279-
/// [`fill_bytes`] `] consume a whole number of `u64` values. If the requested length
279+
/// [`fill_bytes`] consumes a whole number of `u64` values. If the requested length
280280
/// is not a multiple of 8, some bytes will be discarded.
281281
///
282282
/// [`next_u32`]: RngCore::next_u32

src/distributions/other.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ where
189189
}
190190
}
191191

192-
/// Implement `Distribution<(A, B, C, ...)> for Standard, using the list of
192+
/// Implement `Distribution<(A, B, C, ...)> for Standard`, using the list of
193193
/// identifiers
194194
macro_rules! tuple_impl {
195195
($($tyvar:ident)*) => {

src/distributions/uniform.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ impl<X: SampleUniform> TryFrom<RangeInclusive<X>> for Uniform<X> {
371371
}
372372

373373
/// Helper trait similar to [`Borrow`] but implemented
374-
/// only for SampleUniform and references to SampleUniform in
375-
/// order to resolve ambiguity issues.
374+
/// only for [`SampleUniform`] and references to [`SampleUniform`]
375+
/// in order to resolve ambiguity issues.
376376
///
377377
/// [`Borrow`]: std::borrow::Borrow
378378
pub trait SampleBorrow<Borrowed> {

src/seq/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ where
339339
/// which will be called once for each index.
340340
///
341341
/// This implementation uses the algorithm described by Efraimidis and Spirakis
342-
/// in this paper: https://doi.org/10.1016/j.ipl.2005.11.003
342+
/// in this paper: <https://doi.org/10.1016/j.ipl.2005.11.003>
343343
/// It uses `O(length + amount)` space and `O(length)` time.
344344
///
345345
/// Error cases:

0 commit comments

Comments
 (0)