Skip to content

Commit 40b62da

Browse files
authored
[docs] fix two typos in benchmarks & structs section (#802)
1 parent f78a1e7 commit 40b62da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/benchmarks.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The libraries we're comparing are the following:
7272
- cattrs_ (23.2.3)
7373

7474
Each benchmark creates a message containing one or more ``File``/``Directory``
75-
instances, then then serializes, deserializes, and validates it in a loop.
75+
instances, then serializes, deserializes, and validates it in a loop.
7676

7777
The full benchmark source can be found
7878
`here <https://github.com/jcrist/msgspec/tree/main/benchmarks/bench_validation>`__.

docs/structs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ The generated ``__init__()`` for ``Subclass`` looks like:
277277

278278
.. code-block:: python
279279
280-
def __init__(self, c: float, d: bytes = b"", * a: str, b: int = 0):
280+
def __init__(self, c: float, d: bytes = b"", *, a: str, b: int = 0):
281281
282282
The field ordering rules for ``Struct`` types are identical to those for
283283
`dataclasses`, see the `dataclasses docs <dataclasses>`_ for more information.

0 commit comments

Comments
 (0)