mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
codec: fix typo in the docs for Encoder::Error (#6800)
This commit is contained in:
@@ -9,7 +9,7 @@ pub trait Encoder<Item> {
|
||||
/// The type of encoding errors.
|
||||
///
|
||||
/// [`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
|
||||
type Error: From<io::Error>;
|
||||
|
||||
Reference in New Issue
Block a user