We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 113dbd9 commit 5edd42eCopy full SHA for 5edd42e
editoast/editoast_schemas/src/train_schedule/margins.rs
@@ -37,7 +37,7 @@ impl<'de> Deserialize<'de> for Margins {
37
let InternalMargins { boundaries, values } = InternalMargins::deserialize(deserializer)?;
38
if boundaries.len() + 1 != values.len() {
39
return Err(serde::de::Error::custom(
40
- "The number of boudaries and values must be the same",
+ "It's expected to have one more value than boundaries",
41
));
42
}
43
Ok(Margins { boundaries, values })
0 commit comments