]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Fix typos in docs (GH-143193) (#143207)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Dec 2025 07:58:01 +0000 (08:58 +0100)
committerGitHub <noreply@github.com>
Sat, 27 Dec 2025 07:58:01 +0000 (07:58 +0000)
Fix typos in docs (GH-143193)
(cherry picked from commit 57d569942c6becad85919e3b7fef5f6136c413b0)

Co-authored-by: SYan212 <syan235711@gmail.com>
Doc/library/linecache.rst
Doc/tools/extensions/grammar_snippet.py

index e766a9280946d30a8442952a0d9678943fb46259..07305a2a39b25223a5b3ac797896feca23a7c50f 100644 (file)
@@ -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
index 1e059f111e4091ece5e1608fac97e5a964925539..8078b7ebeb8076c36b980d6e607240283508333a 100644 (file)
@@ -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.