Skip to content

Commit fa52b82

Browse files
galmykwillingc
andauthored
gh-125289: Update sample code in asyncio-task.rst (GH-125292)
* Update sample code in asyncio-task.rst This will change **coroutines** sample code in the **Awaitables** section and make the example clearer. * Update Doc/library/asyncio-task.rst Revert the added print Co-authored-by: Carol Willing <[email protected]> * Update Doc/library/asyncio-task.rst Co-authored-by: Carol Willing <[email protected]> --------- Co-authored-by: Carol Willing <[email protected]>
1 parent 4a2282b commit fa52b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ other coroutines::
158158
# Nothing happens if we just call "nested()".
159159
# A coroutine object is created but not awaited,
160160
# so it *won't run at all*.
161-
nested()
161+
nested() # will raise a "RuntimeWarning".
162162

163163
# Let's do it differently now and await it:
164164
print(await nested()) # will print "42".

0 commit comments

Comments
 (0)