codec: fix typo in the docs for Encoder::Error (#6800)

This commit is contained in:
Yotam Ofek 2024-08-27 10:08:22 +03:00 committed by GitHub
parent cc70a211ad
commit c9fad08466
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>;