Fixed botched lay-out in class example

This commit is contained in:
Guido van Rossum 1992-08-14 09:19:56 +00:00
parent abff0fdab1
commit 084b0b2c16
2 changed files with 4 additions and 2 deletions

View 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}

View 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}