From cde0b0b7bfc39aae7e92c981a5c595b3a7414405 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 21 Mar 2011 18:23:34 -0700 Subject: [PATCH] Fix typo in C library wrapping tutorial. --- src/tutorial/clibraries.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tutorial/clibraries.rst b/src/tutorial/clibraries.rst index 67e7fd05..e42247cf 100644 --- a/src/tutorial/clibraries.rst +++ b/src/tutorial/clibraries.rst @@ -129,7 +129,7 @@ Here is a first start for the Queue class:: cimport cqueue cdef class Queue: - cdef cqueue.Queue _c_queue + cdef cqueue.Queue *_c_queue def __cinit__(self): self._c_queue = cqueue.queue_new() @@ -169,7 +169,7 @@ We can thus change the init function as follows:: cimport cqueue cdef class Queue: - cdef cqueue.Queue _c_queue + cdef cqueue.Queue *_c_queue def __cinit__(self): self._c_queue = cqueue.queue_new() if self._c_queue is NULL: @@ -407,7 +407,7 @@ The following listing shows the complete implementation that uses >>> q.pop() 5 """ - cdef cqueue.Queue* _c_queue + cdef cqueue.Queue *_c_queue def __cinit__(self): self._c_queue = cqueue.queue_new() if self._c_queue is NULL: -- 2.26.2