From a319ee6d7604cf70bca1d1fab9ada7b0924f121c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 3 Apr 2024 11:11:40 +0200 Subject: [PATCH] encoder: fix some more typos/phrasing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler (cherry picked from commit 675ecff32fbeff0973eaea016c4b8f3877015adb) --- src/encoder/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/encoder/mod.rs b/src/encoder/mod.rs index c93f13b..da41733 100644 --- a/src/encoder/mod.rs +++ b/src/encoder/mod.rs @@ -186,10 +186,10 @@ where /// Error conditions caused by wrong usage of this crate. #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum EncodeError { - /// The user dropped a `File` without without finishing writing all of its contents. + /// The user dropped a `File` without finishing writing all of its contents. /// - /// This is required because the payload lengths is written out at the beginning and decoding - /// requires there to follow the right amount of data. + /// Completely writing the contents is required because the payload length is written out first + /// and decoding requires the the encoded length and the following data to match. IncompleteFile, /// The user dropped a directory without finalizing it.