summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXie Yanbo <xieyanbo@gmail.com>2024-05-07 09:23:06 (GMT)
committerGitHub <noreply@github.com>2024-05-07 09:23:06 (GMT)
commit976212223541b89329d81ab01e3edd14d8f6aaf5 (patch)
tree1475fffe5ff81416c06bc971a372eb46859c7226
parentfe47d9bee319528ffeb5fd60a615d7f02c7b5585 (diff)
downloadcpython-976212223541b89329d81ab01e3edd14d8f6aaf5.zip
cpython-976212223541b89329d81ab01e3edd14d8f6aaf5.tar.gz
cpython-976212223541b89329d81ab01e3edd14d8f6aaf5.tar.bz2
Fix several typos in documentation (GH-118625)
-rw-r--r--Doc/library/datetime.rst4
-rw-r--r--Doc/library/dis.rst2
-rw-r--r--Doc/library/msvcrt.rst2
3 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index f40c6ce..b20b202 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -635,7 +635,7 @@ Notes:
.. versionchanged:: 3.13
Comparison between :class:`.datetime` object and an instance of
the :class:`date` subclass that is not a :class:`!datetime` subclass
- no longer coverts the latter to :class:`!date`, ignoring the time part
+ no longer converts the latter to :class:`!date`, ignoring the time part
and the time zone.
The default behavior can be changed by overriding the special comparison
methods in subclasses.
@@ -1257,7 +1257,7 @@ Supported operations:
.. versionchanged:: 3.13
Comparison between :class:`.datetime` object and an instance of
the :class:`date` subclass that is not a :class:`!datetime` subclass
- no longer coverts the latter to :class:`!date`, ignoring the time part
+ no longer converts the latter to :class:`!date`, ignoring the time part
and the time zone.
The default behavior can be changed by overriding the special comparison
methods in subclasses.
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 21ac2c8..e255fad 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -104,7 +104,7 @@ The following options are accepted:
Show offsets of instructions.
If :file:`infile` is specified, its disassembled code will be written to stdout.
-Otherwise, disassembly is performed on compiled source code recieved from stdin.
+Otherwise, disassembly is performed on compiled source code received from stdin.
Bytecode analysis
-----------------
diff --git a/Doc/library/msvcrt.rst b/Doc/library/msvcrt.rst
index ac3458c..72da777 100644
--- a/Doc/library/msvcrt.rst
+++ b/Doc/library/msvcrt.rst
@@ -211,7 +211,7 @@ Other Functions
After you use :func:`CrtSetReportMode` to specify :const:`CRTDBG_MODE_FILE`,
you can specify the file handle to receive the message text. *type* must be
- one of the :const:`!CRT_\*` constants listed below. *file* shuld be the file
+ one of the :const:`!CRT_\*` constants listed below. *file* should be the file
handle your want specified. Only available in
:ref:`debug build of Python <debug-build>`.