From: Robert Bradshaw Date: Tue, 22 Mar 2011 01:23:34 +0000 (-0700) Subject: Fix typo in C library wrapping tutorial. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cde0b0b7bfc39aae7e92c981a5c595b3a7414405;p=cython.git Fix typo in C library wrapping tutorial. --- 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: