mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Fix whitespace in example of bad indentation: a comment indicated that one
line was not indented at all, so the example is no longer indented at all. All of the errors being shown remain. Typo: characteru --> character
This commit is contained in:
parent
9493455c2a
commit
1d3e6c15ce
1 changed files with 8 additions and 8 deletions
|
|
@ -196,7 +196,7 @@ The following example shows various indentation errors:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
def perm(l): # error: first line indented
|
def perm(l): # error: first line indented
|
||||||
for i in range(len(l)): # error: not indented
|
for i in range(len(l)): # error: not indented
|
||||||
s = l[:i] + l[i+1:]
|
s = l[:i] + l[i+1:]
|
||||||
p = perm(l[:i] + l[i+1:]) # error: unexpected indent
|
p = perm(l[:i] + l[i+1:]) # error: unexpected indent
|
||||||
for x in p:
|
for x in p:
|
||||||
|
|
@ -327,7 +327,7 @@ String literals are described by the following lexical definitions:
|
||||||
\production{shortstringchar}
|
\production{shortstringchar}
|
||||||
{<any ASCII character except "\e" or newline or the quote>}
|
{<any ASCII character except "\e" or newline or the quote>}
|
||||||
\production{longstringchar}
|
\production{longstringchar}
|
||||||
{<any ASCII characteru except "\e">}
|
{<any ASCII character except "\e">}
|
||||||
\production{escapeseq}
|
\production{escapeseq}
|
||||||
{"\e" <any ASCII character>}
|
{"\e" <any ASCII character>}
|
||||||
\end{productionlist}
|
\end{productionlist}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue