From cf0a42220199e1737a1426e43231b5a7781fcd68 Mon Sep 17 00:00:00 2001 From: BoonsNaibot Date: Fri, 25 Jul 2014 13:30:43 -0500 Subject: [PATCH] Fixed return type of `PyGreenlet_Switch`. --- doc/greenlet.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/greenlet.txt b/doc/greenlet.txt index ac346bfb..9ec22eaf 100644 --- a/doc/greenlet.txt +++ b/doc/greenlet.txt @@ -370,7 +370,7 @@ Reference greenlet will be created, but will fail if switched in. If ``parent`` is NULL, the parent is automatically set to the current greenlet. -``PyGreenlet *PyGreenlet_Switch(PyGreenlet *g, PyObject *args, PyObject *kwargs)`` +``PyObject *PyGreenlet_Switch(PyGreenlet *g, PyObject *args, PyObject *kwargs)`` Switches to the greenlet ``g``. ``args`` and ``kwargs`` are optional and can be NULL. If ``args`` is NULL, an empty tuple is passed to the target greenlet. If kwargs is NULL, no keyword arguments are passed to the target