From 16804297ab8ba5ccc79a2092a2e585a3f1b01d03 Mon Sep 17 00:00:00 2001 From: not_joon Date: Thu, 8 Dec 2022 12:36:45 +0900 Subject: [PATCH] fix typo py_serde --- vm/src/py_serde.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm/src/py_serde.rs b/vm/src/py_serde.rs index 9a7fb3c92a..437f09b425 100644 --- a/vm/src/py_serde.rs +++ b/vm/src/py_serde.rs @@ -29,8 +29,8 @@ where PyObjectDeserializer { vm }.deserialize(deserializer) } -// We need to have a VM available to serialise a PyObject based on its subclass, so we implement -// PyObject serialisation via a proxy object which holds a reference to a VM +// We need to have a VM available to serialize a PyObject based on its subclass, so we implement +// PyObject serialization via a proxy object which holds a reference to a VM pub struct PyObjectSerializer<'s> { pyobject: &'s PyObject, vm: &'s VirtualMachine, @@ -131,7 +131,7 @@ impl<'de> Visitor<'de> for PyObjectDeserializer<'de> { type Value = PyObjectRef; fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { - formatter.write_str("a type that can deserialise in Python") + formatter.write_str("a type that can deserialize in Python") } fn visit_bool(self, value: bool) -> Result