]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35395: fix typos in asyncio eventloop documentation (GH-10880)
authorNaglis <naglis@users.noreply.github.com>
Tue, 4 Dec 2018 07:31:15 +0000 (09:31 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Dec 2018 07:31:15 +0000 (23:31 -0800)
Fixes `loop.add_writer` and `loop.add_signal_handler` method documentation to correctly reference the callback parameter from method signature.

https://bugs.python.org/issue35395

Doc/library/asyncio-eventloop.rst

index d24413a4a7fb7bb27e528ee5acdde70a778f7969..da2339132a403d28da2f1d05ecac8376af70daf4 100644 (file)
@@ -756,7 +756,7 @@ Watching file descriptors
    writing.
 
    Use :func:`functools.partial` :ref:`to pass keyword arguments
-   <asyncio-pass-keywords>` to *func*.
+   <asyncio-pass-keywords>` to *callback*.
 
 .. method:: loop.remove_writer(fd)
 
@@ -970,7 +970,7 @@ Unix signals
    Raise :exc:`RuntimeError` if there is a problem setting up the handler.
 
    Use :func:`functools.partial` :ref:`to pass keyword arguments
-   <asyncio-pass-keywords>` to *func*.
+   <asyncio-pass-keywords>` to *callback*.
 
 .. method:: loop.remove_signal_handler(sig)