Commit 0f186f24 authored by ptype's avatar ptype Committed by GitHub

fix typo in rectangle_cpdef.pyx example

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