summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorptype <ptype@users.noreply.github.com>2018-11-07 09:45:07 +0000
committerStefan Behnel <stefan_ml@behnel.de>2018-11-07 19:26:34 +0100
commit4c7a9888939351f93951d25fa9aad58ad451f0b7 (patch)
tree800eae5af516a78bfef475fddcb0bc3c2dcab4ca /docs
parent0e840b7fa61b3d135affa1ac005b2512d40219ce (diff)
downloadcython-4c7a9888939351f93951d25fa9aad58ad451f0b7.tar.gz
fix typo in rectangle_cpdef.pyx example
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/userguide/early_binding_for_speed/rectangle_cpdef.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/userguide/early_binding_for_speed/rectangle_cpdef.pyx b/docs/examples/userguide/early_binding_for_speed/rectangle_cpdef.pyx
index fde9ef9cf..01df3759f 100644
--- a/docs/examples/userguide/early_binding_for_speed/rectangle_cpdef.pyx
+++ b/docs/examples/userguide/early_binding_for_speed/rectangle_cpdef.pyx
@@ -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