pep-0492: Slightly imrpove example 2 of "async for" section

This commit is contained in:
Yury Selivanov 2015-04-23 16:27:42 -04:00
parent a5bb069021
commit 2889bc2597
1 changed files with 2 additions and 2 deletions

View File

@ -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?