Skip to content

Commit c7a9216

Browse files
DOC: fix typos found by codespell in documentation
1 parent 34d1704 commit c7a9216

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PAPER ?=
1717
DOXYGEN ?= doxygen
1818
# For merging a documentation archive into a git checkout of numpy/doc
1919
# Turn a tag like v1.18.0 into 1.18
20-
# Use sed -n -e 's/patttern/match/p' to return a blank value if no match
20+
# Use sed -n -e 's/pattern/match/p' to return a blank value if no match
2121
TAG ?= $(shell git describe --tag | sed -n -e's,v\([1-9]\.[0-9]*\)\.[0-9].*,\1,p')
2222

2323
FILES=

doc/source/numpy_2_0_migration_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ have been added for setting the real or imaginary part.
213213
The underlying type remains a struct under C++ (all of the above still remains
214214
valid).
215215

216-
This has implications for Cython. It is recommened to always use the native
216+
This has implications for Cython. It is recommended to always use the native
217217
typedefs ``cfloat_t``, ``cdouble_t``, ``clongdouble_t`` rather than the NumPy
218218
types ``npy_cfloat``, etc, unless you have to interface with C code written
219219
using the NumPy types. You can still write cython code using the ``c.real`` and

doc/source/reference/array_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ upgraded to given NumPy's
1818
For usage guidelines for downstream libraries and end users who want to write
1919
code that will work with both NumPy and other array libraries, we refer to the
2020
documentation of the array API standard itself and to code and
21-
developer-focused documention in SciPy and scikit-learn.
21+
developer-focused documentation in SciPy and scikit-learn.
2222

2323
Note that in order to use standard-complaint code with older NumPy versions
2424
(< 2.0), the `array-api-compat

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ cannot not be accessed directly.
823823
824824
.. c:function:: PyArray_ArrayDescr *PyDataType_SUBARRAY(PyArray_Descr *descr)
825825
826-
Information about a subarray dtype eqivalent to the Python `np.dtype.base`
826+
Information about a subarray dtype equivalent to the Python `np.dtype.base`
827827
and `np.dtype.shape`.
828828
829829
If this is non- ``NULL``, then this data-type descriptor is a
@@ -3975,7 +3975,7 @@ the C-API is needed then some additional steps must be taken.
39753975
behavior as NumPy 1.x.
39763976
39773977
.. note::
3978-
Windows never had shared visbility although you can use this macro
3978+
Windows never had shared visibility although you can use this macro
39793979
to achieve it. We generally discourage sharing beyond shared boundary
39803980
lines since importing the array API includes NumPy version checks.
39813981

doc/source/release/2.0.0-notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ The ``metadata`` field is kept, but the macro version should also be preferred.
653653

654654
Descriptor ``elsize`` and ``alignment`` access
655655
----------------------------------------------
656-
Unless compiling only with NumPy 2 support, the ``elsize`` and ``aligment``
656+
Unless compiling only with NumPy 2 support, the ``elsize`` and ``alignment``
657657
fields must now be accessed via ``PyDataType_ELSIZE``,
658658
``PyDataType_SET_ELSIZE``, and ``PyDataType_ALIGNMENT``.
659659
In cases where the descriptor is attached to an array, we advise

0 commit comments

Comments
 (0)