Skip to content

Commit 8966ad0

Browse files
committed
DOC: Fix some typos and incorrect markups
[skip cirrus] [skip azp] [skip actions]
1 parent 2a9b913 commit 8966ad0

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

doc/source/dev/howto-docs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ membergroups and members-only options:
376376
:outline:
377377
:no-link:
378378
379-
Checkout the `doxygenclass documentation <https://breathe.readthedocs.io/en/latest/class.html#class-example>_`
379+
Checkout the `doxygenclass documentation <https://breathe.readthedocs.io/en/latest/class.html#class-example>`__
380380
for more details and to see it in action.
381381

382382
``doxygennamespace``

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,14 +1802,14 @@ the functions that must be implemented for each slot.
18021802
"default" value that may differ from the "identity" value normally used.
18031803
For example:
18041804
1805-
- ``0.0`` is the default for ``sum([])``. But ``-0.0`` is the correct
1806-
identity otherwise as it preserves the sign for ``sum([-0.0])``.
1807-
- We use no identity for object, but return the default of ``0`` and
1808-
``1`` for the empty ``sum([], dtype=object)`` and
1809-
``prod([], dtype=object)``.
1810-
This allows ``np.sum(np.array(["a", "b"], dtype=object))`` to work.
1811-
- ``-inf`` or ``INT_MIN`` for ``max`` is an identity, but at least
1812-
``INT_MIN`` not a good *default* when there are no items.
1805+
- ``0.0`` is the default for ``sum([])``. But ``-0.0`` is the correct
1806+
identity otherwise as it preserves the sign for ``sum([-0.0])``.
1807+
- We use no identity for object, but return the default of ``0`` and
1808+
``1`` for the empty ``sum([], dtype=object)`` and
1809+
``prod([], dtype=object)``.
1810+
This allows ``np.sum(np.array(["a", "b"], dtype=object))`` to work.
1811+
- ``-inf`` or ``INT_MIN`` for ``max`` is an identity, but at least
1812+
``INT_MIN`` not a good *default* when there are no items.
18131813
18141814
*initial* is a pointer to the data for the initial value, which should be
18151815
filled in. Returns -1, 0, or 1 indicating error, no initial value, and the
@@ -3912,7 +3912,7 @@ are defined:
39123912
39133913
* If neither is defined, the C-API is declared to
39143914
``static void **PyArray_API``, so it is only visible within the
3915-
compilation unit/file using ``#includes numpy/arrayobject.h``.
3915+
compilation unit/file using ``#include <numpy/arrayobject.h>``.
39163916
* If only ``PY_ARRAY_UNIQUE_SYMBOL`` is defined (it could be empty) then
39173917
the it is declared to a non-static ``void **`` allowing it to be used
39183918
by other files which are linked.

doc/source/user/absolute_beginners.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ only one "data type". The data type is recorded in the ``dtype`` attribute.
235235
>>> a.dtype
236236
dtype('int64') # "int" for integer, "64" for 64-bit
237237

238-
ref:`Read more about array attributes here <arrays.ndarray>` and learn about
238+
:ref:`Read more about array attributes here <arrays.ndarray>` and learn about
239239
:ref:`array objects here <arrays>`.
240240

241241
How to create a basic array

0 commit comments

Comments
 (0)