fix EncodedOption docs

This commit is contained in:
mbecker20
2025-10-10 00:32:05 -07:00
parent c40cbc4d77
commit 3da63395fd

View File

@@ -3,11 +3,11 @@ use bytes::Bytes;
use crate::{CastBytes, Decode, Encode};
/// Message wrapper to handle Error unwrapping
/// Message wrapper to handle Option unwrapping
/// anywhere in the en/decoding chain.
/// ```markdown
/// | -- u8[] -- | ----- u8 ------ |
/// | <CONTENTS> | 0: Ok or _: Err |
/// | -- u8[] -- | ------- u8 ------- |
/// | <CONTENTS> | 0: Some or _: None |
/// ```
#[derive(Clone, Debug)]
pub struct EncodedOption<T>(T);