revised example code

This commit is contained in:
Sohaib Farooqi 2018-01-29 19:21:39 +08:00
parent 8e50e12f10
commit cd8cdc61f7
1 changed files with 2 additions and 2 deletions

4
README.md vendored
View File

@ -388,11 +388,11 @@ array = [2, 8, 22]
```py
iter1 = [1,2,3,4]
g1 = (x for x in x)
g1 = (x for x in iter1)
iter1 = [1,2,3,4,5]
iter2 = [1,2,3,4]
g2 = (x for x in x)
g2 = (x for x in iter2)
iter2[:] = [1,2,3,4,5]
```