Skip to content

Commit ded105a

Browse files
authored
Doc: Fix typos (#125728)
1 parent c5c21fe commit ded105a

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Doc/c-api/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,7 @@ Example usage::
24182418
24192419
In the above example, :c:macro:`Py_SETREF` calls :c:macro:`Py_DECREF`, which
24202420
can call arbitrary code through an object's deallocation function. The critical
2421-
section API avoids potentital deadlocks due to reentrancy and lock ordering
2421+
section API avoids potential deadlocks due to reentrancy and lock ordering
24222422
by allowing the runtime to temporarily suspend the critical section if the
24232423
code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24242424

Doc/c-api/long.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
511511
free(bignum);
512512
513513
*flags* is either ``-1`` (``Py_ASNATIVEBYTES_DEFAULTS``) to select defaults
514-
that behave most like a C cast, or a combintation of the other flags in
514+
that behave most like a C cast, or a combination of the other flags in
515515
the table below.
516516
Note that ``-1`` cannot be combined with other flags.
517517

Doc/c-api/monitoring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ would typically correspond to a python function.
147147
148148
The ``version`` argument is a pointer to a value which should be allocated
149149
by the user together with ``state_array`` and initialized to 0,
150-
and then set only by :c:func:`!PyMonitoring_EnterScope` itelf. It allows this
150+
and then set only by :c:func:`!PyMonitoring_EnterScope` itself. It allows this
151151
function to determine whether event states have changed since the previous call,
152152
and to return quickly if they have not.
153153

Doc/library/concurrent.futures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ ThreadPoolExecutor Example
208208
'http://www.cnn.com/',
209209
'http://europe.wsj.com/',
210210
'http://www.bbc.co.uk/',
211-
'http://nonexistant-subdomain.python.org/']
211+
'http://nonexistent-subdomain.python.org/']
212212

213213
# Retrieve a single page and report the URL and contents
214214
def load_url(url, timeout):

Doc/library/importlib.metadata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ path.
559559

560560
``DatabaseDistribution``, then, would look something like::
561561

562-
class DatabaseDistribution(importlib.metadata.Distributon):
562+
class DatabaseDistribution(importlib.metadata.Distribution):
563563
def __init__(self, record):
564564
self.record = record
565565

Doc/using/windows.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ The short form of the argument (``-3``) only ever selects from core Python
838838
releases, and not other distributions. However, the longer form (``-V:3``) will
839839
select from any.
840840

841-
The Company is matched on the full string, case-insenitive. The Tag is matched
842-
oneither the full string, or a prefix, provided the next character is a dot or a
841+
The Company is matched on the full string, case-insensitive. The Tag is matched
842+
on either the full string, or a prefix, provided the next character is a dot or a
843843
hyphen. This allows ``-V:3.1`` to match ``3.1-32``, but not ``3.10``. Tags are
844844
sorted using numerical ordering (``3.10`` is newer than ``3.1``), but are
845845
compared using text (``-V:3.01`` does not match ``3.1``).

0 commit comments

Comments
 (0)