[docs] fix wrongly named AsyncContextDecorator (GH-23164)
Also added versionchanged.
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index ee2becb..d5a1068 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -409,11 +409,11 @@
.. versionadded:: 3.2
-.. class:: AsyncContextManager
+.. class:: AsyncContextDecorator
- Similar as ContextManger only for async
+ Similar to :class:`ContextDecorator` but only for asynchronous functions.
- Example of ``ContextDecorator``::
+ Example of ``AsyncContextDecorator``::
from asyncio import run
from contextlib import AsyncContextDecorator
@@ -445,6 +445,8 @@
The bit in the middle
Finishing
+ .. versionadded:: 3.10
+
.. class:: ExitStack()