]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35395: fix typos in asyncio eventloop documentation (GH-10880)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Dec 2018 07:36:31 +0000 (23:36 -0800)
committerGitHub <noreply@github.com>
Tue, 4 Dec 2018 07:36:31 +0000 (23:36 -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
(cherry picked from commit 17473347942353946fe455f797a2197cb89c1090)

Co-authored-by: Naglis <naglis@users.noreply.github.com>
Doc/library/asyncio-eventloop.rst

index 8215198ce91f1c140f56ed7b5fc6c20c84f7bee0..647b7fc5e7a5820633fef9ea15fe4b233e13fd8f 100644 (file)
@@ -750,7 +750,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)
 
@@ -964,7 +964,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)