Commit 2b3f99e6 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #1442 from messa/patch-1

fix docs example: getArea instead of undefined getLength
parents 594c1d3b 8a66de35
......@@ -211,7 +211,7 @@ Now, we use cdef to declare a var of the class with the C++ ``new`` statement::
cdef Rectangle *rec = new Rectangle(1, 2, 3, 4)
try:
recLength = rec.getLength()
recArea = rec.getArea()
...
finally:
del rec # delete heap allocated object
......
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