chore: improve code comments clarity

Signed-off-by: xibeiyoumian <xibeiyoumian@outlook.com>
This commit is contained in:
xibeiyoumian
2025-12-22 14:38:55 +08:00
parent 576e2ef9d8
commit a27948e209
2 changed files with 2 additions and 2 deletions
@@ -11,7 +11,7 @@ struct T0(u8, u8);
struct T1(u8, #[serde(default)] u8);
// ERROR: The first field can get default value only if sequence is empty, but
// that mean that all other fields cannot be deserialized without errors.
// that means that all other fields cannot be deserialized without errors.
#[derive(Deserialize)]
struct T2(#[serde(default)] u8, u8, u8);
@@ -11,7 +11,7 @@ fn d<T>() -> T {
struct T1(u8, #[serde(default = "d")] u8);
// ERROR: The first field can get default value only if sequence is empty, but
// that mean that all other fields cannot be deserialized without errors.
// that means that all other fields cannot be deserialized without errors.
#[derive(Deserialize)]
struct T2(#[serde(default = "d")] u8, u8, u8);