Skip to content

Commit 77e5d0c

Browse files
authored
Merge pull request RustPython#4311 from notJoon/typo-pyserde
fix typo in `py_serde`
2 parents f70b8bf + 1680429 commit 77e5d0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vm/src/py_serde.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ where
2929
PyObjectDeserializer { vm }.deserialize(deserializer)
3030
}
3131

32-
// We need to have a VM available to serialise a PyObject based on its subclass, so we implement
33-
// PyObject serialisation via a proxy object which holds a reference to a VM
32+
// We need to have a VM available to serialize a PyObject based on its subclass, so we implement
33+
// PyObject serialization via a proxy object which holds a reference to a VM
3434
pub struct PyObjectSerializer<'s> {
3535
pyobject: &'s PyObject,
3636
vm: &'s VirtualMachine,
@@ -131,7 +131,7 @@ impl<'de> Visitor<'de> for PyObjectDeserializer<'de> {
131131
type Value = PyObjectRef;
132132

133133
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
134-
formatter.write_str("a type that can deserialise in Python")
134+
formatter.write_str("a type that can deserialize in Python")
135135
}
136136

137137
fn visit_bool<E>(self, value: bool) -> Result<Self::Value, E>

0 commit comments

Comments
 (0)