Commit 1ba47438 authored by scoder's avatar scoder

Merge pull request #385 from hamogu/patch-1

Fix two small sphinx errors in the tutorials
parents 4e65f8f1 4db191ab
...@@ -22,7 +22,7 @@ management in C. ...@@ -22,7 +22,7 @@ management in C.
Simple C values and structs (such as a local variable ``cdef double x``) are Simple C values and structs (such as a local variable ``cdef double x``) are
usually allocated on the stack and passed by value, but for larger and more usually allocated on the stack and passed by value, but for larger and more
complicated objects (e.g. a dynamically-sized list of doubles), the memory must complicated objects (e.g. a dynamically-sized list of doubles), the memory must
be manually requested and released. C provides the functions :c:func`malloc`, be manually requested and released. C provides the functions :c:func:`malloc`,
:c:func:`realloc`, and :c:func:`free` for this purpose, which can be imported :c:func:`realloc`, and :c:func:`free` for this purpose, which can be imported
in cython from ``clibc.stdlib``. Their signatures are: in cython from ``clibc.stdlib``. Their signatures are:
......
...@@ -234,7 +234,7 @@ The array lookups are still slowed down by two factors: ...@@ -234,7 +234,7 @@ The array lookups are still slowed down by two factors:
Now bounds checking is not performed (and, as a side-effect, if you ''do'' Now bounds checking is not performed (and, as a side-effect, if you ''do''
happen to access out of bounds you will in the best case crash your program happen to access out of bounds you will in the best case crash your program
and in the worst case corrupt data). It is possible to switch bounds-checking and in the worst case corrupt data). It is possible to switch bounds-checking
mode in many ways, see [:reference/directives:compiler directives] for more mode in many ways, see :ref:`compiler-directives` for more
information. information.
Negative indices are dealt with by ensuring Cython that the indices will be Negative indices are dealt with by ensuring Cython that the indices will be
......
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