Skip to content

Commit 534b6c2

Browse files
authored
fix minor typos in comments (#1832)
1 parent 9222ef8 commit 534b6c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/serializers/extra.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ impl CollectWarnings {
406406
Ok(())
407407
} else if extra.check.enabled() {
408408
// note: I think this should never actually happen since we use `to_python(..., mode='json')` during
409-
// JSON serialisation to "try" union branches, but it's here for completeness/correctness
409+
// JSON serialization to "try" union branches, but it's here for completeness/correctness
410410
// in particular, in future we could allow errors instead of warnings on fallback
411411
Err(S::Error::custom(UNEXPECTED_TYPE_SER_MARKER))
412412
} else {

src/serializers/type_serializers/model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl TypeSerializer for ModelSerializer {
205205
} else if self.allow_value(value, &model_extra)? {
206206
let inner_value = self.get_inner_value(value, &model_extra)?;
207207
// There is strong coupling between a model serializer and its child, we should
208-
// not fall back to type inference in the midddle.
208+
// not fall back to type inference in the middle.
209209
self.serializer
210210
.to_python_no_infer(&inner_value, include, exclude, &model_extra)
211211
} else {

0 commit comments

Comments
 (0)