From f8199ca87a8fc97a51d09bf8bfa57627cd54f74d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 2 Nov 2022 00:38:59 +0100 Subject: [PATCH] better docs --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index aa160ec..73d95ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,9 +68,9 @@ pub struct SizeMissmatch { #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub enum ByteConversionError { - /// The passed slice is too small. Returns the found and expected minimum size + /// The passed slice is too small. Returns the passed slice length and expected minimum size ToSliceTooSmall(SizeMissmatch), - /// The provider buffer it soo small. Returns the found and expected minimum size + /// The provider buffer is too small. Returns the passed slice length and expected minimum size FromSliceTooSmall(SizeMissmatch), /// The [zerocopy] library failed to write to bytes ZeroCopyToError,