better docs

This commit is contained in:
Robin Müller 2022-11-02 00:38:59 +01:00
parent 4c1101f65f
commit f8199ca87a
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C

View File

@ -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,