mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2024-12-12 19:18:24 +02:00
clippy: docs: put more relevant things into backticks.
This commit is contained in:
parent
8141da9d39
commit
5173bfb11b
@ -32,7 +32,7 @@ impl Bom {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// BomPeeker wraps `R` and satisfies the `io::Read` interface while also
|
/// `BomPeeker` wraps `R` and satisfies the `io::Read` interface while also
|
||||||
/// providing a peek at the BOM if one exists. Peeking at the BOM does not
|
/// providing a peek at the BOM if one exists. Peeking at the BOM does not
|
||||||
/// advance the reader.
|
/// advance the reader.
|
||||||
struct BomPeeker<R> {
|
struct BomPeeker<R> {
|
||||||
@ -87,7 +87,7 @@ impl<R: io::Read> io::Read for BomPeeker<R> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like io::Read::read_exact, except it never returns UnexpectedEof and
|
/// Like `io::Read::read_exact`, except it never returns `UnexpectedEof` and
|
||||||
/// instead returns the number of bytes read if EOF is seen before filling
|
/// instead returns the number of bytes read if EOF is seen before filling
|
||||||
/// `buf`.
|
/// `buf`.
|
||||||
fn read_full<R: io::Read>(
|
fn read_full<R: io::Read>(
|
||||||
|
@ -28,7 +28,7 @@ impl<'m, 'r> From<&'m Match<'r>> for Offset {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// CountingReplacer implements the Replacer interface for Regex,
|
/// `CountingReplacer` implements the Replacer interface for Regex,
|
||||||
/// and counts how often replacement is being performed.
|
/// and counts how often replacement is being performed.
|
||||||
struct CountingReplacer<'r> {
|
struct CountingReplacer<'r> {
|
||||||
replace: &'r [u8],
|
replace: &'r [u8],
|
||||||
|
Loading…
Reference in New Issue
Block a user