From a191c6a76a72ee82ecd82f6fc55b767bf6e93e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 12 Jun 2020 09:21:41 +0200 Subject: [PATCH] decoder: fix typos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler Signed-off-by: Wolfgang Bumiller --- src/decoder/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index c6a8e8f..98e5135 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -110,7 +110,7 @@ where async fn seq_read_exact(input: &mut T, buf: &mut [u8]) -> io::Result<()> { match seq_read_exact_or_eof(input, buf).await? { Some(()) => Ok(()), - None => io_bail!("unexpected eof"), + None => io_bail!("unexpected EOF"), } } @@ -143,7 +143,7 @@ where async fn seq_read_entry(input: &mut T) -> io::Result { seq_read_entry_or_eof(input) .await? - .ok_or_else(|| io_format_err!("unexepcted EOF")) + .ok_or_else(|| io_format_err!("unexpected EOF")) } /// The decoder state machine implementation.