5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2024-12-22 21:33:50 +03:00

decoder: fix typos

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2020-06-12 09:21:41 +02:00 committed by Wolfgang Bumiller
parent 4a13b8a3e4
commit a191c6a76a

View File

@ -110,7 +110,7 @@ where
async fn seq_read_exact<T: SeqRead + ?Sized>(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<T: SeqRead + ?Sized, E: Endian>(input: &mut T) -> io::Result<E> {
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.