Skip to content

Commit 3b2e6da

Browse files
committed
Iterable duck types
1 parent 8dd47f2 commit 3b2e6da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ Iterable Duck Types
11721172
-------------------
11731173

11741174
### Iterable
1175-
* **Only required method is iter(). It should return an iterator of its contents.**
1175+
* **Only required method is iter(). It should return an iterator of object's items.**
11761176
* **Contains() automatically works on any object that has iter() defined.**
11771177
```python
11781178
class MyIterable:

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ <h4 id="reusablecontextmanagers">Reusable context managers:</h4>
10871087
<h2 id="iterableducktypes"><a href="#iterableducktypes" name="iterableducktypes">#</a>Iterable Duck Types</h2>
10881088
<h3 id="iterable">Iterable</h3>
10891089
<ul>
1090-
<li><strong>Only required method is iter(). It should return an iterator of its contents.</strong></li>
1090+
<li><strong>Only required method is iter(). It should return an iterator of object's items.</strong></li>
10911091
<li><strong>Contains() automatically works on any object that has iter() defined.</strong></li>
10921092
</ul>
10931093
<pre><code class="python language-python hljs"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyIterable</span>:</span>

0 commit comments

Comments
 (0)