Fix typo in C library wrapping tutorial.
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 22 Mar 2011 01:23:34 +0000 (18:23 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 22 Mar 2011 01:23:34 +0000 (18:23 -0700)
src/tutorial/clibraries.rst

index 67e7fd0578eba4fdf0914e81c06d1578066dc761..e42247cf3d820b0dd37e2422dab58ee3d3fb9969 100644 (file)
@@ -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: