Skip to content

Commit edcd97e

Browse files
committed
fix doc lint
1 parent 2cd33e3 commit edcd97e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ The ``async with`` statement will wait for all tasks in the group to finish.
395395
While waiting, new tasks may still be added to the group
396396
(for example, by passing ``tg`` into one of the coroutines
397397
and calling ``tg.create_task()`` in that coroutine). There is also opportunity
398-
to short-circuit the entire task group with :meth:`cancel`, based on some condition.
398+
to short-circuit the entire task group with ``tg.cancel()``, based on some condition.
399399
Once the last task has finished and the ``async with`` block is exited,
400400
no new tasks may be added to the group.
401401

0 commit comments

Comments
 (0)