@@ -10,7 +10,7 @@ use tokio::io::{AsyncRead, AsyncReadExt};
1010#[ cfg( feature = "futures_async" ) ]
1111use futures_util:: { io:: AsyncRead , io:: AsyncReadExt } ;
1212
13- /// A trait for reading VarInts from any other `Reader`.
13+ /// A trait for reading [` VarInts`] from any other `Reader`.
1414///
1515/// It's recommended to use a buffered reader, as many small reads will happen.
1616pub trait VarIntReader {
@@ -19,7 +19,7 @@ pub trait VarIntReader {
1919 /// In general, this always reads a whole varint. If the encoded varint's value is bigger
2020 /// than the valid value range of `VI`, then the value is truncated.
2121 ///
22- /// On EOF, an io::Error with io::ErrorKind::UnexpectedEof is returned.
22+ /// On EOF, an [` io::Error`] with [` io::ErrorKind::UnexpectedEof`] is returned.
2323 fn read_varint < VI : VarInt > ( & mut self ) -> Result < VI > ;
2424}
2525
@@ -30,7 +30,7 @@ pub trait VarIntAsyncReader {
3030 async fn read_varint_async < VI : VarInt > ( & mut self ) -> Result < VI > ;
3131}
3232
33- /// VarIntProcessor encapsulates the logic for decoding a VarInt byte-by-byte.
33+ /// ` VarIntProcessor` encapsulates the logic for decoding a [` VarInt`] byte-by-byte.
3434#[ derive( Default ) ]
3535pub struct VarIntProcessor {
3636 buf : [ u8 ; 10 ] ,
@@ -114,11 +114,11 @@ impl<R: Read> VarIntReader for R {
114114 }
115115}
116116
117- /// A trait for reading FixedInts from any other `Reader`.
117+ /// A trait for reading [` FixedInts`] from any other `Reader`.
118118pub trait FixedIntReader {
119119 /// Read a fixed integer from a reader. How many bytes are read depends on `FI`.
120120 ///
121- /// On EOF, an io::Error with io::ErrorKind::UnexpectedEof is returned.
121+ /// On EOF, an [` io::Error`] with [` io::ErrorKind::UnexpectedEof`] is returned.
122122 fn read_fixedint < FI : FixedInt > ( & mut self ) -> Result < FI > ;
123123}
124124
0 commit comments