Fix typos in docs (#143193)

This commit is contained in:
SYan212 2025-12-27 07:52:28 +00:00 committed by GitHub
parent 5d1e78f7b5
commit 57d569942c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View 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

View 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.