Fixed botched lay-out in class example
This commit is contained in:
parent
abff0fdab1
commit
084b0b2c16
|
@ -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}
|
||||
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue