Commit cde0b0b7 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix typo in C library wrapping tutorial.

parent 2f0eb188
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment