]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed botched lay-out in class example
authorGuido van Rossum <guido@python.org>
Fri, 14 Aug 1992 09:19:56 +0000 (09:19 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Aug 1992 09:19:56 +0000 (09:19 +0000)
Doc/tut.tex
Doc/tut/tut.tex

index e45b6e7f6f369670d0042ec4d3e743f65cec180a..be84fcc2bc8bc8170f66a1906e0a9190f528378d 100644 (file)
@@ -2385,7 +2385,8 @@ Methods may call other methods by using method attributes of the
                 def add(self, x):
                         self.data.append(x)
                 def addtwice(self, x):
-                self.add(x) self.add(x)
+                        self.add(x)
+                        self.add(x)
 \end{verbatim}
 
 
index e45b6e7f6f369670d0042ec4d3e743f65cec180a..be84fcc2bc8bc8170f66a1906e0a9190f528378d 100644 (file)
@@ -2385,7 +2385,8 @@ Methods may call other methods by using method attributes of the
                 def add(self, x):
                         self.data.append(x)
                 def addtwice(self, x):
-                self.add(x) self.add(x)
+                        self.add(x)
+                        self.add(x)
 \end{verbatim}