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 { @@ -87,7 +87,7 @@ impl io::Read for BomPeeker { } } -/// 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( diff --git a/src/printer.rs b/src/printer.rs index 0cd916d5..d18d900f 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -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. struct CountingReplacer<'r> { replace: &'r [u8],