Skip to content

Commit 09f7dc1

Browse files
author
fengluo
committed
Fix some out-of-data struct in c-api types-and-structures
1 parent 30a6ea5 commit 09f7dc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/reference/c-api/types-and-structures.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ PyArray_Type and PyArrayObject
205205
.. c:type:: PyArrayObject
206206
207207
.. deprecated:: 1.7
208-
Use :c:type:`NPY_AO` for a shorter name.
208+
Use ``NPY_AO`` for a shorter name.
209209

210210
Represents a NumPy array object in the C API.
211211

@@ -563,7 +563,7 @@ PyArray_ArrFuncs
563563
564564
An array of function pointers to cast from the current type to
565565
most of the other builtin types. The types
566-
:c:type:`NPY_DATETIME`, :c:type:`NPY_TIMEDELTA`, and :c:type:`HALF`
566+
:c:type:`NPY_DATETIME`, :c:type:`NPY_TIMEDELTA`, and :c:type:`NPY_HALF`
567567
go into the castdict even though they are built-in. Each function
568568
casts a contiguous, aligned, and notswapped buffer pointed at by
569569
*from* to a contiguous, aligned, and notswapped buffer pointed

0 commit comments

Comments
 (0)