From 270b242ec5dcdb60719cd6bc486aa4e5d4551369 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 5 Oct 2017 14:05:10 +0530 Subject: [PATCH] docs: fix decorator types. --- docs/api.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index d10f11f2..63f258bb 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -28,8 +28,7 @@ non-essential code in order to reduce its size, since it is also serves as the bootstrap implementation sent to every new slave context. .. currentmodule:: mitogen.core - -.. function:: takes_econtext +.. decorator:: takes_econtext Decorator that marks a function or class method to automatically receive a kwarg named `econtext`, referencing the @@ -41,8 +40,7 @@ bootstrap implementation sent to every new slave context. explicitly. .. currentmodule:: mitogen.core - -.. function:: takes_router +.. decorator:: takes_router Decorator that marks a function or class method to automatically receive a kwarg named `router`, referencing the :py:class:`econtext.core.Router`