diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-10-25 11:46:49 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2020-10-25 11:46:49 +0000 |
commit | 3b557bcc2216bcc7ef239a2706832fc8ebf0065e (patch) | |
tree | 51b6d92ee8bfa710ff7b2f040bff24a8b8d93382 /doc/source/reference/c-api | |
parent | 119a0330c9cbeb13fbf8801b4f5d956659ff92cc (diff) | |
download | numpy-3b557bcc2216bcc7ef239a2706832fc8ebf0065e.tar.gz |
DOC: Don't use Python highlighting for non-python code
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r-- | doc/source/reference/c-api/array.rst | 4 | ||||
-rw-r--r-- | doc/source/reference/c-api/deprecations.rst | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst index b22e20818..e9717d59a 100644 --- a/doc/source/reference/c-api/array.rst +++ b/doc/source/reference/c-api/array.rst @@ -2353,7 +2353,9 @@ it is possible to do this. Defining an :c:type:`NpyAuxData` is similar to defining a class in C++, but the object semantics have to be tracked manually since the API is in C. Here's an example for a function which doubles up an element using -an element copier function as a primitive.:: +an element copier function as a primitive. + +.. code-block:: c typedef struct { NpyAuxData base; diff --git a/doc/source/reference/c-api/deprecations.rst b/doc/source/reference/c-api/deprecations.rst index a382017a2..5b1abc6f2 100644 --- a/doc/source/reference/c-api/deprecations.rst +++ b/doc/source/reference/c-api/deprecations.rst @@ -48,7 +48,9 @@ warnings). To use the NPY_NO_DEPRECATED_API mechanism, you need to #define it to the target API version of NumPy before #including any NumPy headers. -If you want to confirm that your code is clean against 1.7, use:: +If you want to confirm that your code is clean against 1.7, use: + +.. code-block:: c #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION |