File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1127,7 +1127,7 @@ class MySortable:
1127
1127
```
1128
1128
1129
1129
### Iterator
1130
- * ** Any object that defines methods next() and iter() is an iterator.**
1130
+ * ** Any object that has methods next() and iter() is an iterator.**
1131
1131
* ** Next() should return next item or raise StopIteration.**
1132
1132
* ** Iter() should return 'self'.**
1133
1133
``` python
Original file line number Diff line number Diff line change 1072
1072
1073
1073
1074
1074
< div > < h3 id ="iterator-1 "> Iterator</ h3 > < ul >
1075
- < li > < strong > Any object that defines methods next() and iter() is an iterator.</ strong > </ li >
1075
+ < li > < strong > Any object that has methods next() and iter() is an iterator.</ strong > </ li >
1076
1076
< li > < strong > Next() should return next item or raise StopIteration.</ strong > </ li >
1077
1077
< li > < strong > Iter() should return 'self'.</ strong > </ li >
1078
1078
</ ul > < pre > < code class ="python language-python hljs "> < span class ="hljs-class "> < span class ="hljs-keyword "> class</ span > < span class ="hljs-title "> Counter</ span > :</ span >
You can’t perform that action at this time.
0 commit comments