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

This commit is contained in:
Yotam Ofek
2024-08-27 09:08:22 +02:00
committed by GitHub
parent cc70a211ad
commit c9fad08466
+1 -1
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>;