Skip to content

Commit ed6fbda

Browse files
hellow554phimuemue
authored andcommitted
fix clippy::doc_markdown
1 parent c88736c commit ed6fbda

7 files changed

+17
-17
lines changed

src/adaptors/multi_product.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn multi_cartesian_product<H>(iters: H) -> MultiProduct<<H::Item as IntoIter
4040
}
4141

4242
#[derive(Clone, Debug)]
43-
/// Holds the state of a single iterator within a MultiProduct.
43+
/// Holds the state of a single iterator within a `MultiProduct`.
4444
struct MultiProductIter<I>
4545
where I: Iterator + Clone,
4646
I::Item: Clone
@@ -50,7 +50,7 @@ struct MultiProductIter<I>
5050
iter_orig: I,
5151
}
5252

53-
/// Holds the current state during an iteration of a MultiProduct.
53+
/// Holds the current state during an iteration of a `MultiProduct`.
5454
#[derive(Debug)]
5555
enum MultiProductIterState {
5656
StartOfIter,

src/exactly_one_err.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ use crate::size_hint;
1111
/// Iterator returned for the error case of `IterTools::exactly_one()`
1212
/// This iterator yields exactly the same elements as the input iterator.
1313
///
14-
/// During the execution of exactly_one the iterator must be mutated. This wrapper
14+
/// During the execution of `exactly_one` the iterator must be mutated. This wrapper
1515
/// effectively "restores" the state of the input iterator when it's handed back.
1616
///
17-
/// This is very similar to PutBackN except this iterator only supports 0-2 elements and does not
17+
/// This is very similar to `PutBackN` except this iterator only supports 0-2 elements and does not
1818
/// use a `Vec`.
1919
#[derive(Clone)]
2020
pub struct ExactlyOneError<I>

src/groupbylazy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::cell::{Cell, RefCell};
22
use alloc::vec::{self, Vec};
33

4-
/// A trait to unify FnMut for GroupBy with the chunk key in IntoChunks
4+
/// A trait to unify `FnMut` for `GroupBy` with the chunk key in `IntoChunks`
55
trait KeyFunction<A> {
66
type Key;
77
fn call_mut(&mut self, arg: A) -> Self::Key;
@@ -18,7 +18,7 @@ impl<A, K, F: ?Sized> KeyFunction<A> for F
1818
}
1919

2020

21-
/// ChunkIndex acts like the grouping key function for IntoChunks
21+
/// `ChunkIndex` acts like the grouping key function for `IntoChunks`
2222
#[derive(Debug)]
2323
struct ChunkIndex {
2424
size: usize,

src/intersperse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub struct IntersperseWith<I, ElemF>
5555
peek: Option<I::Item>,
5656
}
5757

58-
/// Create a new IntersperseWith iterator
58+
/// Create a new `IntersperseWith` iterator
5959
pub fn intersperse_with<I, ElemF>(iter: I, elt: ElemF) -> IntersperseWith<I, ElemF>
6060
where I: Iterator,
6161
{

src/pad_tail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ where
2323
debug_fmt_fields!(PadUsing, iter, min, pos);
2424
}
2525

26-
/// Create a new **PadUsing** iterator.
26+
/// Create a new `PadUsing` iterator.
2727
pub fn pad_using<I, F>(iter: I, min: usize, filler: F) -> PadUsing<I, F>
2828
where I: Iterator,
2929
F: FnMut(usize) -> I::Item

src/peeking_take_while.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ where
9090
debug_fmt_fields!(PeekingTakeWhile, iter);
9191
}
9292

93-
/// Create a PeekingTakeWhile
93+
/// Create a `PeekingTakeWhile`
9494
pub fn peeking_take_while<I, F>(iter: &mut I, f: F) -> PeekingTakeWhile<I, F>
9595
where I: Iterator,
9696
{

src/size_hint.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
//! Arithmetic on **Iterator** *.size_hint()* values.
1+
//! Arithmetic on `Iterator.size_hint()` values.
22
//!
33
44
use std::usize;
55
use std::cmp;
66
use std::u32;
77

8-
/// **SizeHint** is the return type of **Iterator::size_hint()**.
8+
/// `SizeHint` is the return type of `Iterator::size_hint()`.
99
pub type SizeHint = (usize, Option<usize>);
1010

11-
/// Add **SizeHint** correctly.
11+
/// Add `SizeHint` correctly.
1212
#[inline]
1313
pub fn add(a: SizeHint, b: SizeHint) -> SizeHint {
1414
let min = a.0.saturating_add(b.0);
@@ -20,7 +20,7 @@ pub fn add(a: SizeHint, b: SizeHint) -> SizeHint {
2020
(min, max)
2121
}
2222

23-
/// Add **x** correctly to a **SizeHint**.
23+
/// Add `x` correctly to a `SizeHint`.
2424
#[inline]
2525
pub fn add_scalar(sh: SizeHint, x: usize) -> SizeHint {
2626
let (mut low, mut hi) = sh;
@@ -29,7 +29,7 @@ pub fn add_scalar(sh: SizeHint, x: usize) -> SizeHint {
2929
(low, hi)
3030
}
3131

32-
/// Sbb **x** correctly to a **SizeHint**.
32+
/// Subtract `x` correctly from a `SizeHint`.
3333
#[inline]
3434
#[allow(dead_code)]
3535
pub fn sub_scalar(sh: SizeHint, x: usize) -> SizeHint {
@@ -40,7 +40,7 @@ pub fn sub_scalar(sh: SizeHint, x: usize) -> SizeHint {
4040
}
4141

4242

43-
/// Multiply **SizeHint** correctly
43+
/// Multiply `SizeHint` correctly
4444
///
4545
/// ```ignore
4646
/// use std::usize;
@@ -66,7 +66,7 @@ pub fn mul(a: SizeHint, b: SizeHint) -> SizeHint {
6666
(low, hi)
6767
}
6868

69-
/// Multiply **x** correctly with a **SizeHint**.
69+
/// Multiply `x` correctly with a `SizeHint`.
7070
#[inline]
7171
pub fn mul_scalar(sh: SizeHint, x: usize) -> SizeHint {
7272
let (mut low, mut hi) = sh;
@@ -75,7 +75,7 @@ pub fn mul_scalar(sh: SizeHint, x: usize) -> SizeHint {
7575
(low, hi)
7676
}
7777

78-
/// Raise `base` correctly by a **`SizeHint`** exponent.
78+
/// Raise `base` correctly by a `SizeHint` exponent.
7979
#[inline]
8080
pub fn pow_scalar_base(base: usize, exp: SizeHint) -> SizeHint {
8181
let exp_low = cmp::min(exp.0, u32::MAX as usize) as u32;

0 commit comments

Comments
 (0)