From acb5f895cd0b0f63f3dafdd3025b314830ab4a67 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Mon, 5 May 2025 22:28:36 +0500 Subject: [PATCH] Update docs/topics/coroutines.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Adrián Chaves --- docs/topics/coroutines.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/coroutines.rst b/docs/topics/coroutines.rst index 439474310..8af4ce71d 100644 --- a/docs/topics/coroutines.rst +++ b/docs/topics/coroutines.rst @@ -156,7 +156,7 @@ For example: - A custom download handler needs to define a ``download_request()`` method that returns a :class:`~twisted.internet.defer.Deferred` object. You can write a method that works with Deferreds and returns one directly, or you - can write a coroutine and convert it into a functions that returns a + can write a coroutine and convert it into a function that returns a Deferred with :func:`~scrapy.utils.defer.deferred_f_from_coro_f`.