summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-10-15 13:37:09 +0300
committerGitHub <noreply@github.com>2020-10-15 13:37:09 +0300
commitdc11e03f11b9354a84db0848e7ddc277ab779b68 (patch)
tree56cb059459916e071136627bb1b1eee5aacc5b32
parent99cf84aed1751d4707f6f0c2cb9fcfb460f56ea7 (diff)
parent33ce3d7388e8202497a9e2ac163c26c26c1d2115 (diff)
downloadnumpy-dc11e03f11b9354a84db0848e7ddc277ab779b68.tar.gz
Merge pull request #17571 from takanori-pskq/fix-typo
DOC: Fix typos
-rw-r--r--doc/source/reference/c-api/array.rst4
-rw-r--r--doc/source/reference/routines.io.rst2
-rw-r--r--doc/source/user/c-info.beyond-basics.rst2
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst
index 637b6aaeb..3a024e203 100644
--- a/doc/source/reference/c-api/array.rst
+++ b/doc/source/reference/c-api/array.rst
@@ -24,7 +24,7 @@ These macros access the :c:type:`PyArrayObject` structure members and are
defined in ``ndarraytypes.h``. The input argument, *arr*, can be any
:c:type:`PyObject *<PyObject>` that is directly interpretable as a
:c:type:`PyArrayObject *` (any instance of the :c:data:`PyArray_Type`
-and itssub-types).
+and its sub-types).
.. c:function:: int PyArray_NDIM(PyArrayObject *arr)
@@ -942,7 +942,7 @@ argument must be a :c:type:`PyObject *<PyObject>` that can be directly interpret
Type represents one of the flexible array types ( :c:data:`NPY_STRING`,
:c:data:`NPY_UNICODE`, or :c:data:`NPY_VOID` ).
-.. c:function:: int PyDataType_ISUNSIZED(PyArray_Descr* descr):
+.. c:function:: int PyDataType_ISUNSIZED(PyArray_Descr* descr)
Type has no size information attached, and can be resized. Should only be
called on flexible dtypes. Types that are attached to an array will always
diff --git a/doc/source/reference/routines.io.rst b/doc/source/reference/routines.io.rst
index 2e119af9a..3052ee1fb 100644
--- a/doc/source/reference/routines.io.rst
+++ b/doc/source/reference/routines.io.rst
@@ -88,4 +88,4 @@ Binary Format Description
.. autosummary::
:toctree: generated/
- lib.format
+ lib.format
diff --git a/doc/source/user/c-info.beyond-basics.rst b/doc/source/user/c-info.beyond-basics.rst
index 9e9cd3067..124162d6c 100644
--- a/doc/source/user/c-info.beyond-basics.rst
+++ b/doc/source/user/c-info.beyond-basics.rst
@@ -115,7 +115,7 @@ processors that use pipelining to enhance fundamental operations.
The :c:func:`PyArray_IterAllButAxis` ( ``array``, ``&dim`` ) constructs an
iterator object that is modified so that it will not iterate over the
dimension indicated by dim. The only restriction on this iterator
-object, is that the :c:func:`PyArray_Iter_GOTO1D` ( ``it``, ``ind`` ) macro
+object, is that the :c:func:`PyArray_ITER_GOTO1D` ( ``it``, ``ind`` ) macro
cannot be used (thus flat indexing won't work either if you pass this
object back to Python --- so you shouldn't do this). Note that the
returned object from this routine is still usually cast to