diff options
author | Fred Drake <fdrake@acm.org> | 2001-12-11 17:46:38 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-12-11 17:46:38 (GMT) |
commit | 1d3e6c15ced88e01a1bd3b8b6b48278a6162f539 (patch) | |
tree | 3434e82f3566b1fa26d49ad8d345ebdc5334d712 /Doc/ref/ref2.tex | |
parent | 9493455c2a7a0cb0566a6af849f96a303f69463e (diff) | |
download | cpython-1d3e6c15ced88e01a1bd3b8b6b48278a6162f539.zip cpython-1d3e6c15ced88e01a1bd3b8b6b48278a6162f539.tar.gz cpython-1d3e6c15ced88e01a1bd3b8b6b48278a6162f539.tar.bz2 |
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
Diffstat (limited to 'Doc/ref/ref2.tex')
-rw-r--r-- | Doc/ref/ref2.tex | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex index 11dea96..74aaae4 100644 --- a/Doc/ref/ref2.tex +++ b/Doc/ref/ref2.tex @@ -195,13 +195,13 @@ def perm(l): The following example shows various indentation errors: \begin{verbatim} - def perm(l): # error: first line indented - for i in range(len(l)): # error: not indented - s = l[:i] + l[i+1:] - p = perm(l[:i] + l[i+1:]) # error: unexpected indent - for x in p: - r.append(l[i:i+1] + x) - return r # error: inconsistent dedent + def perm(l): # error: first line indented +for i in range(len(l)): # error: not indented + s = l[:i] + l[i+1:] + p = perm(l[:i] + l[i+1:]) # error: unexpected indent + for x in p: + r.append(l[i:i+1] + x) + return r # error: inconsistent dedent \end{verbatim} (Actually, the first three errors are detected by the parser; only the @@ -327,7 +327,7 @@ String literals are described by the following lexical definitions: \production{shortstringchar} {<any ASCII character except "\e" or newline or the quote>} \production{longstringchar} - {<any ASCII characteru except "\e">} + {<any ASCII character except "\e">} \production{escapeseq} {"\e" <any ASCII character>} \end{productionlist} |