Skip to content

Commit ceb7d1b

Browse files
author
AshleySetter
committed
fixed typo
1 parent 073b4c4 commit ceb7d1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ClassCythonCPP/TestClass.pyx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cdef extern from "TestClassC.cpp": # defines the source C++ file
88
cdef class CTestClass: # defines a python wrapper to the C++ class
99
cdef TestClass* thisptr # thisptr is a pointer that will hold to the instance of the C++ class
1010
def __cinit__(self, int Dimensionality): # defines the python wrapper class' init function
11-
self.thisptr = new TestClass(Dimensionality) # creates an instance of the C++ class and puts allocates the pointer to thisB
11+
self.thisptr = new TestClass(Dimensionality) # creates an instance of the C++ class and puts allocates the pointer to this
1212
def __dealloc__(self): # defines the python wrapper class' deallocation function (python destructor)
1313
del self.thisptr # destroys the reference to the C++ instance (which calls the C++ class destructor
1414

0 commit comments

Comments
 (0)