]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in docs (#143193)
authorSYan212 <syan235711@gmail.com>
Sat, 27 Dec 2025 07:52:28 +0000 (07:52 +0000)
committerGitHub <noreply@github.com>
Sat, 27 Dec 2025 07:52:28 +0000 (09:52 +0200)
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.