mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Fix typos in docs (#143193)
This commit is contained in:
parent
5d1e78f7b5
commit
57d569942c
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