Commit 4c7a9888 authored by ptype's avatar ptype Committed by Stefan Behnel

fix typo in rectangle_cpdef.pyx example

parent 0e840b7f
......@@ -8,7 +8,7 @@ cdef class Rectangle:
self.x1 = x1
self.y1 = y1
cpdef int _area(self):
cpdef int area(self):
area = (self.x1 - self.x0) * (self.y1 - self.y0)
if area < 0:
area = -area
......
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