From b27d1bb0a8060c5a52cad14b0d36b691050da081 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Sat, 11 Oct 2025 21:30:05 +0100 Subject: [PATCH] fix minor typos in comments --- src/serializers/extra.rs | 2 +- src/serializers/type_serializers/model.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serializers/extra.rs b/src/serializers/extra.rs index ca9755cc5..8d4afddf4 100644 --- a/src/serializers/extra.rs +++ b/src/serializers/extra.rs @@ -406,7 +406,7 @@ impl CollectWarnings { Ok(()) } else if extra.check.enabled() { // note: I think this should never actually happen since we use `to_python(..., mode='json')` during - // JSON serialisation to "try" union branches, but it's here for completeness/correctness + // JSON serialization to "try" union branches, but it's here for completeness/correctness // in particular, in future we could allow errors instead of warnings on fallback Err(S::Error::custom(UNEXPECTED_TYPE_SER_MARKER)) } else { diff --git a/src/serializers/type_serializers/model.rs b/src/serializers/type_serializers/model.rs index 07b4689a5..3d7372321 100644 --- a/src/serializers/type_serializers/model.rs +++ b/src/serializers/type_serializers/model.rs @@ -205,7 +205,7 @@ impl TypeSerializer for ModelSerializer { } else if self.allow_value(value, &model_extra)? { let inner_value = self.get_inner_value(value, &model_extra)?; // There is strong coupling between a model serializer and its child, we should - // not fall back to type inference in the midddle. + // not fall back to type inference in the middle. self.serializer .to_python_no_infer(&inner_value, include, exclude, &model_extra) } else {