Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7aad54

Browse files
committed
Callable
1 parent 1523c6e commit d7aad54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,9 @@ class MySequence:
752752
```python
753753
class Counter:
754754
def __init__(self):
755-
self.a = 0
755+
self.i = 0
756756
def __call__(self):
757-
self.a += 1
757+
self.i += 1
758758
return self.a
759759
```
760760

0 commit comments

Comments
 (0)