src/util: fix typo

This commit is contained in:
Florian Klink 2023-07-14 14:25:40 +03:00 committed by networkException
parent 885b80c4f1
commit 5a0bee62cf
Signed by untrusted user: networkException
GPG key ID: E3877443AE684391

View file

@ -27,7 +27,7 @@ pub trait Migrate: Serialize + for<'de> Deserialize<'de> + 'static {
Self::Previous::decode(bytes).map(Self::migrate)
}
/// Encode this type with optionnal version marker
/// Encode this type with optional version marker
fn encode(&self) -> Result<Vec<u8>, rmp_serde::encode::Error> {
let mut wr = Vec::with_capacity(128);
wr.extend_from_slice(Self::VERSION_MARKER);