summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2022-06-21 19:39:08 (GMT)
committerGitHub <noreply@github.com>2022-06-21 19:39:08 (GMT)
commit9ab245f8ca84e75c6d11d3683f498427b1425366 (patch)
tree8f567832d4e7f9d24de6b3e98bac45684034ce9d /Doc
parent38fdff9274835c008c1e6c0c6546c23139e77c0f (diff)
downloadcpython-9ab245f8ca84e75c6d11d3683f498427b1425366.zip
cpython-9ab245f8ca84e75c6d11d3683f498427b1425366.tar.gz
cpython-9ab245f8ca84e75c6d11d3683f498427b1425366.tar.bz2
[3.10] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94080)
Closes GH-93675 (cherry picked from commit 830513754d081619b2d72db17770627312072fa5) Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/signal.rst2
-rw-r--r--Doc/reference/expressions.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst
index 0aa5996..e763e16 100644
--- a/Doc/library/signal.rst
+++ b/Doc/library/signal.rst
@@ -703,7 +703,7 @@ To illustrate this issue, consider the following code::
def __enter__(self):
# If KeyboardInterrupt occurs here, everything is fine
self.lock.acquire()
- # If KeyboardInterrupt occcurs here, __exit__ will not be called
+ # If KeyboardInterrupt occurs here, __exit__ will not be called
...
# KeyboardInterrupt could occur just before the function returns
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 1f8b08f..b8c8d5f 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -568,7 +568,7 @@ is already executing raises a :exc:`ValueError` exception.
In typical use, this is called with a single exception instance similar to the
way the :keyword:`raise` keyword is used.
- For backwards compatability, however, the second signature is
+ For backwards compatibility, however, the second signature is
supported, following a convention from older versions of Python.
The *type* argument should be an exception class, and *value*
should be an exception instance. If the *value* is not provided, the