mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.14] Fix typos in docs (GH-143193) (#143207)
Fix typos in docs (GH-143193)
(cherry picked from commit 57d569942c)
Co-authored-by: SYan212 <syan235711@gmail.com>
This commit is contained in:
parent
723ed8c507
commit
9316e4bb7e
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue