Skip to content

Commit 5d98b2b

Browse files
authored
Merge pull request #448 from tomfun/patch-1
Update next.md
2 parents f8509a2 + 5550fb2 commit 5d98b2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/builtin/next.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Python next() built-in function
2222
>>> i = iter([1, 2, 3])
2323
>>> i
2424
# <list_iterator object at 0x7f93158badc0>
25-
>>> i.__next__()
25+
>>> next(i)
2626
# 1
27-
>>> i.__next__()
27+
>>> next(i)
2828
# 2
29-
>>> i.__next__()
29+
>>> next(i)
3030
# 3
3131
```
3232

0 commit comments

Comments
 (0)