File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,13 +195,13 @@ \subsection{Indentation\label{indentation}}
195195The following example shows various indentation errors:
196196
197197\begin {verbatim }
198- def perm(l): # error: first line indented
199- for i in range(len(l)): # error: not indented
200- s = l[:i] + l[i+1:]
201- p = perm(l[:i] + l[i+1:]) # error: unexpected indent
202- for x in p:
203- r.append(l[i:i+1] + x)
204- return r # error: inconsistent dedent
198+ def perm(l): # error: first line indented
199+ for i in range(len(l)): # error: not indented
200+ s = l[:i] + l[i+1:]
201+ p = perm(l[:i] + l[i+1:]) # error: unexpected indent
202+ for x in p:
203+ r.append(l[i:i+1] + x)
204+ return r # error: inconsistent dedent
205205\end {verbatim }
206206
207207(Actually, the first three errors are detected by the parser; only the
@@ -327,7 +327,7 @@ \subsection{String literals\label{strings}}
327327 \production {shortstringchar}
328328 {<any ASCII character except "\e" or newline or the quote>}
329329 \production {longstringchar}
330- {<any ASCII characteru except "\e" >}
330+ {<any ASCII character except "\e" >}
331331 \production {escapeseq}
332332 {"\e " <any ASCII character>}
333333\end {productionlist }
You can’t perform that action at this time.
0 commit comments