Merge pull request #3019 from xibeiyoumian/master

chore: improve code comments clarity
This commit is contained in:
David Tolnay
2025-12-22 03:29:10 -08:00
committed by GitHub
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);