summaryrefslogtreecommitdiffstats
path: root/src/decoder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2017-11-19 16:36:55 +0100
committerAndrew Gallant <jamslam@gmail.com>2017-11-22 10:50:28 -0500
commit5173bfb11b00adf5ca3e05d7b7ff03f5971c2713 (patch)
tree5fc0605e330f37c60bd3821b742540374c82c206 /src/decoder.rs
parent8141da9d39de8c67339d83ada2b7c387e5713d1d (diff)
clippy: docs: put more relevant things into backticks.
Diffstat (limited to 'src/decoder.rs')
-rw-r--r--src/decoder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder.rs b/src/decoder.rs
index bd2c3119..8bb9d2bf 100644
--- a/src/decoder.rs
+++ b/src/decoder.rs
@@ -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
/// advance the reader.
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
/// `buf`.
fn read_full<R: io::Read>(