Commit 8a66de35 authored by Petr Messner's avatar Petr Messner

fix docs example: getArea instead of undefined getLength

parent 594c1d3b
......@@ -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