https://github.com/python/cpython/commit/57d569942c6becad85919e3b7fef5f6136c413b0
commit: 57d569942c6becad85919e3b7fef5f6136c413b0
branch: main
author: SYan212 <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-27T09:52:28+02:00
summary:

Fix typos in docs (#143193)

files:
M Doc/library/linecache.rst
M Doc/tools/extensions/grammar_snippet.py

diff --git a/Doc/library/linecache.rst b/Doc/library/linecache.rst
index e766a9280946d3..07305a2a39b252 100644
--- a/Doc/library/linecache.rst
+++ b/Doc/library/linecache.rst
@@ -31,7 +31,7 @@ The :mod:`linecache` module defines the following functions:
    .. index:: triple: module; search; path
 
    If *filename* indicates a frozen module (starting with ``'<frozen '``), the 
function
-   will attepmt to get the real file name from ``module_globals['__file__']`` 
if
+   will attempt to get the real file name from ``module_globals['__file__']`` 
if
    *module_globals* is not ``None``.
 
    If a file named *filename* is not found, the function first checks
diff --git a/Doc/tools/extensions/grammar_snippet.py 
b/Doc/tools/extensions/grammar_snippet.py
index 1e059f111e4091..8078b7ebeb8076 100644
--- a/Doc/tools/extensions/grammar_snippet.py
+++ b/Doc/tools/extensions/grammar_snippet.py
@@ -191,7 +191,7 @@ class GrammarSnippetDirective(GrammarSnippetBase):
     into something similar to Sphinx productionlist, but better suited
     for our needs:
     - Instead of `::=`, use a colon, as in `Grammar/python.gram`
-    - Show the listing almost as is, with no auto-aligment.
+    - Show the listing almost as is, with no auto-alignment.
       The only special character is the backtick, which marks tokens.
 
     Unlike Sphinx's productionlist, this directive supports options.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to