pep-0492: Slightly imrpove example 2 of "async for" section
This commit is contained in:
parent
a5bb069021
commit
2889bc2597
|
@ -383,8 +383,8 @@ iterators.
|
|||
raise StopAsyncIteration
|
||||
return value
|
||||
|
||||
async for item in AsyncIteratorWrapper("abc"):
|
||||
print(item)
|
||||
async for letter in AsyncIteratorWrapper("abc"):
|
||||
print(letter)
|
||||
|
||||
|
||||
Why StopAsyncIteration?
|
||||
|
|
Loading…
Reference in New Issue