Skip to content

Commit 39ecb17

Browse files
authored
typo fixes in docs (#142683)
1 parent f893e8f commit 39ecb17

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Doc/c-api/extension-modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Legacy single-phase initialization
282282
However, there are no plans to remove support for it.
283283
284284
In single-phase initialization, the old-style
285-
:ref:`initializaton function <extension-pyinit>` (``PyInit_modulename``)
285+
:ref:`initialization function <extension-pyinit>` (``PyInit_modulename``)
286286
should create, populate and return a module object.
287287
This is typically done using :c:func:`PyModule_Create` and functions like
288288
:c:func:`PyModule_AddObjectRef`.

Doc/c-api/module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ A module's token -- and the *your_token* value to use in the above code -- is:
588588
behave as if it was created from that :c:type:`PyModuleDef`.
589589
In particular, the module state must have matching layout and semantics.
590590
591-
Modules created from :c:type:`PyModuleDef` allways use the address of
591+
Modules created from :c:type:`PyModuleDef` always use the address of
592592
the :c:type:`PyModuleDef` as the token.
593593
This means that :c:macro:`!Py_mod_token` cannot be used in
594594
:c:member:`PyModuleDef.m_slots`.

Doc/library/inspect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ Retrieving source code
640640
Added parameters *inherit_class_doc* and *fallback_to_class_doc*.
641641

642642
Documentation strings on :class:`~functools.cached_property`
643-
objects are now inherited if not overriden.
643+
objects are now inherited if not overridden.
644644

645645

646646
.. function:: getcomments(object)

Doc/reference/lexical_analysis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ Whitespace is significant in these situations:
12271227
string contents.
12281228
* In ``fstring_replacement_field``, if ``f_debug_specifier`` is present,
12291229
all whitespace after the opening brace until the ``f_debug_specifier``,
1230-
as well as whitespace immediatelly following ``f_debug_specifier``,
1230+
as well as whitespace immediately following ``f_debug_specifier``,
12311231
is retained as part of the expression.
12321232

12331233
.. impl-detail::

0 commit comments

Comments
 (0)