Skip to content

Commit

Permalink
Fix typo and readability
Browse files Browse the repository at this point in the history
  • Loading branch information
elisbyberi authored and jcrist committed Dec 27, 2024
1 parent 595c33c commit 3c487c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/schema-evolution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For example, suppose we had a `msgspec.Struct` type representing a user:

.. code-block:: python
>>> import msgpsec
>>> import msgspec
>>> from typing import Set, Optional
Expand All @@ -48,7 +48,7 @@ accomplish this, we add ``phone`` as an _optional_ field (defaulting to
... email: Optional[str] = None
... phone : Optional[str] = None
Messages serialized using the new and old schemas can still be exchanged
Messages serialized using both the old and new schemas can still be exchanged
without error. If an old message is deserialized using the new schema, the
missing fields all have default values that will be used. Likewise, if a new
message is deserialized with the old schema the unknown new fields will be
Expand Down

0 comments on commit 3c487c1

Please sign in to comment.