diff --git a/lib/encoding/src/option.rs b/lib/encoding/src/option.rs index 10cba01a1..c3c5b035e 100644 --- a/lib/encoding/src/option.rs +++ b/lib/encoding/src/option.rs @@ -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 ------ | -/// | | 0: Ok or _: Err | +/// | -- u8[] -- | ------- u8 ------- | +/// | | 0: Some or _: None | /// ``` #[derive(Clone, Debug)] pub struct EncodedOption(T);