Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc11e03

Browse files
authored
Merge pull request #17571 from takanori-pskq/fix-typo
DOC: Fix typos
2 parents 99cf84a + 33ce3d7 commit dc11e03

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/source/reference/c-api/array.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ These macros access the :c:type:`PyArrayObject` structure members and are
2424
defined in ``ndarraytypes.h``. The input argument, *arr*, can be any
2525
:c:type:`PyObject *<PyObject>` that is directly interpretable as a
2626
:c:type:`PyArrayObject *` (any instance of the :c:data:`PyArray_Type`
27-
and itssub-types).
27+
and its sub-types).
2828

2929
.. c:function:: int PyArray_NDIM(PyArrayObject *arr)
3030
@@ -942,7 +942,7 @@ argument must be a :c:type:`PyObject *<PyObject>` that can be directly interpret
942942
Type represents one of the flexible array types ( :c:data:`NPY_STRING`,
943943
:c:data:`NPY_UNICODE`, or :c:data:`NPY_VOID` ).
944944
945-
.. c:function:: int PyDataType_ISUNSIZED(PyArray_Descr* descr):
945+
.. c:function:: int PyDataType_ISUNSIZED(PyArray_Descr* descr)
946946
947947
Type has no size information attached, and can be resized. Should only be
948948
called on flexible dtypes. Types that are attached to an array will always

doc/source/reference/routines.io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ Binary Format Description
8888
.. autosummary::
8989
:toctree: generated/
9090

91-
lib.format
91+
lib.format

doc/source/user/c-info.beyond-basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ processors that use pipelining to enhance fundamental operations.
115115
The :c:func:`PyArray_IterAllButAxis` ( ``array``, ``&dim`` ) constructs an
116116
iterator object that is modified so that it will not iterate over the
117117
dimension indicated by dim. The only restriction on this iterator
118-
object, is that the :c:func:`PyArray_Iter_GOTO1D` ( ``it``, ``ind`` ) macro
118+
object, is that the :c:func:`PyArray_ITER_GOTO1D` ( ``it``, ``ind`` ) macro
119119
cannot be used (thus flat indexing won't work either if you pass this
120120
object back to Python --- so you shouldn't do this). Note that the
121121
returned object from this routine is still usually cast to

0 commit comments

Comments
 (0)