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

Merge pull request #2703 from ptype/patch-1

fix typo in rectangle_cpdef.pyx example
parents 0c922916 0f186f24
...@@ -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