mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
codec: fix typo in the docs for Encoder::Error
(#6800)
This commit is contained in:
parent
cc70a211ad
commit
c9fad08466
@ -9,7 +9,7 @@ pub trait Encoder<Item> {
|
|||||||
/// The type of encoding errors.
|
/// The type of encoding errors.
|
||||||
///
|
///
|
||||||
/// [`FramedWrite`] requires `Encoder`s errors to implement `From<io::Error>`
|
/// [`FramedWrite`] requires `Encoder`s errors to implement `From<io::Error>`
|
||||||
/// in the interest letting it return `Error`s directly.
|
/// in the interest of letting it return `Error`s directly.
|
||||||
///
|
///
|
||||||
/// [`FramedWrite`]: crate::codec::FramedWrite
|
/// [`FramedWrite`]: crate::codec::FramedWrite
|
||||||
type Error: From<io::Error>;
|
type Error: From<io::Error>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user