diff options
Diffstat (limited to 'docs/examples/tutorial/cdef_classes/math_function_2.pyx')
-rw-r--r-- | docs/examples/tutorial/cdef_classes/math_function_2.pyx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/examples/tutorial/cdef_classes/math_function_2.pyx b/docs/examples/tutorial/cdef_classes/math_function_2.pyx index 1793ef689..a4bdb7aa2 100644 --- a/docs/examples/tutorial/cdef_classes/math_function_2.pyx +++ b/docs/examples/tutorial/cdef_classes/math_function_2.pyx @@ -1,3 +1,5 @@ -cdef class Function:
- cpdef double evaluate(self, double x) except *:
- return 0
+ +cdef class Function: + + cpdef double evaluate(self, double x) except *: + return 0 |