Skip to content

Commit fe034cf

Browse files
authored
Update README.md - chain only on iterables (#103)
1 parent b129766 commit fe034cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ Chain a sequence of iterables:
120120
>>>
121121
```
122122

123-
Warning : chain only unfold iterable containing ONLY iterables:
123+
Warning : chain only unfolds an iterable containing ONLY iterables:
124124

125125
```python
126-
[1, 2, [3]] | chain
126+
list([1, 2, [3]] | chain)
127127
```
128-
Gives a `TypeError: chain argument #1 must support iteration`
128+
Gives a `TypeError: 'int' object is not iterable`
129129
Consider using traverse.
130130

131131

0 commit comments

Comments
 (0)