summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2024-05-26 08:15:57 (GMT)
committerGitHub <noreply@github.com>2024-05-26 08:15:57 (GMT)
commit7f86c769db4a50f54cf5312610da728cfc19fc6d (patch)
tree49490d3797971aaee2a2b2166cdee8a1ad6657ad /Doc/library
parentd4e382ba31735846c00a1d0ecd74aab36347a849 (diff)
downloadcpython-7f86c769db4a50f54cf5312610da728cfc19fc6d.zip
cpython-7f86c769db4a50f54cf5312610da728cfc19fc6d.tar.gz
cpython-7f86c769db4a50f54cf5312610da728cfc19fc6d.tar.bz2
[3.12] docs: fix a few typos identified by codespell (GH-119516) (#119571)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/curses.rst2
-rw-r--r--Doc/library/numbers.rst4
-rw-r--r--Doc/library/optparse.rst2
-rw-r--r--Doc/library/ssl.rst4
-rw-r--r--Doc/library/textwrap.rst2
-rw-r--r--Doc/library/turtle.rst2
6 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index b6af961..2ebda3d 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -922,7 +922,7 @@ the following methods and attributes:
.. method:: window.getbegyx()
- Return a tuple ``(y, x)`` of co-ordinates of upper-left corner.
+ Return a tuple ``(y, x)`` of coordinates of upper-left corner.
.. method:: window.getbkgd()
diff --git a/Doc/library/numbers.rst b/Doc/library/numbers.rst
index 5f59746..d0ae79c 100644
--- a/Doc/library/numbers.rst
+++ b/Doc/library/numbers.rst
@@ -84,10 +84,10 @@ The numeric tower
``~``.
-Notes for type implementors
+Notes for type implementers
---------------------------
-Implementors should be careful to make equal numbers equal and hash
+Implementers should be careful to make equal numbers equal and hash
them to the same values. This may be subtle if there are two different
extensions of the real numbers. For example, :class:`fractions.Fraction`
implements :func:`hash` as follows::
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index c5ae2ed..fc652d2 100644
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -1738,7 +1738,7 @@ seen, but blow up if it comes after ``-b`` in the command-line. ::
Callback example 3: check option order (generalized)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-If you want to re-use this callback for several similar options (set a flag, but
+If you want to reuse this callback for several similar options (set a flag, but
blow up if ``-b`` has already been seen), it needs a bit of work: the error
message and the flag that it sets must be generalized. ::
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 834d436..8fb0d50 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -759,7 +759,7 @@ Constants
.. data:: OP_SINGLE_DH_USE
- Prevents re-use of the same DH key for distinct SSL sessions. This
+ Prevents reuse of the same DH key for distinct SSL sessions. This
improves forward secrecy but requires more computational resources.
This option only applies to server sockets.
@@ -767,7 +767,7 @@ Constants
.. data:: OP_SINGLE_ECDH_USE
- Prevents re-use of the same ECDH key for distinct SSL sessions. This
+ Prevents reuse of the same ECDH key for distinct SSL sessions. This
improves forward secrecy but requires more computational resources.
This option only applies to server sockets.
diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst
index deaefee..a58b460 100644
--- a/Doc/library/textwrap.rst
+++ b/Doc/library/textwrap.rst
@@ -154,7 +154,7 @@ hyphenated words; only then will long words be broken if necessary, unless
wrapper = TextWrapper()
wrapper.initial_indent = "* "
- You can re-use the same :class:`TextWrapper` object many times, and you can
+ You can reuse the same :class:`TextWrapper` object many times, and you can
change any of its options through direct assignment to instance attributes
between uses.
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
index ae05b20..ea5e21f 100644
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -111,7 +111,7 @@ off-screen)::
home()
The home position is at the center of the turtle's screen. If you ever need to
-know them, get the turtle's x-y co-ordinates with::
+know them, get the turtle's x-y coordinates with::
pos()