fixed 2 typos in example code kindly pointed out by Tom Jenkins.
This commit is contained in:
parent
33602533d2
commit
4279130666
|
@ -143,7 +143,7 @@ Specification
|
|||
addition to the body of class Iter would suffice:
|
||||
|
||||
def __copy__(self):
|
||||
result = self.__class__(sequence)
|
||||
result = self.__class__(self.sequence)
|
||||
result.index = self.index
|
||||
return result
|
||||
|
||||
|
@ -330,7 +330,7 @@ Rationale
|
|||
return self.i, self.it.next()
|
||||
|
||||
def __copy__(self):
|
||||
result = self.__class__.new()
|
||||
result = self.__class__.__new__()
|
||||
result.it = self.it.__copy__()
|
||||
result.i = self.i
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue