mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Repair flawed example.
This commit is contained in:
parent
c4889c496a
commit
3446365c37
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ Let's try a simple generator:
|
|||
|
||||
>>> def f():
|
||||
... yield 1
|
||||
... return
|
||||
... raise StopIteration
|
||||
... yield 2 # never reached
|
||||
...
|
||||
>>> g = f()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue