File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1215,7 +1215,8 @@ class MyCollection:
1215
1215
```
1216
1216
1217
1217
### Sequence
1218
- * ** Only required methods are len() and getitem(), that should return an item at index or raise 'IndexError'.**
1218
+ * ** Only required methods are len() and getitem().**
1219
+ * ** Getitem() should return an item at index or raise 'IndexError'.**
1219
1220
* ** Iter() and contains() automatically work on any object that has getitem() defined.**
1220
1221
* ** Reversed() automatically works on any object that has getitem() and len() defined.**
1221
1222
``` python
Original file line number Diff line number Diff line change @@ -1130,7 +1130,8 @@ <h3 id="collection">Collection</h3>
1130
1130
</ code > </ pre >
1131
1131
< h3 id ="sequence "> Sequence</ h3 >
1132
1132
< ul >
1133
- < li > < strong > Only required methods are len() and getitem(), that should return an item at index or raise 'IndexError'.</ strong > </ li >
1133
+ < li > < strong > Only required methods are len() and getitem().</ strong > </ li >
1134
+ < li > < strong > Getitem() should return an item at index or raise 'IndexError'.</ strong > </ li >
1134
1135
< li > < strong > Iter() and contains() automatically work on any object that has getitem() defined.</ strong > </ li >
1135
1136
< li > < strong > Reversed() automatically works on any object that has getitem() and len() defined.</ strong > </ li >
1136
1137
</ ul >
You can’t perform that action at this time.
0 commit comments