Commit cf12b089 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Merge pull request #2112 from candide-guevara/patch-1

documentation __dealloc__ should be def not cdef
parents f53690f3 4a179efd
......@@ -409,9 +409,9 @@ compatible types.::
cdef class OwnedPointer:
cdef void* ptr
cdef __dealloc__(self):
if ptr != NULL:
free(ptr)
def __dealloc__(self):
if self.ptr != NULL:
free(self.ptr)
@staticmethod
cdef create(void* ptr):
......
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