Skip to content

Commit

Permalink
Merge pull request #26413 from F3eQnxN3RriK/doc-patch-1
Browse files Browse the repository at this point in the history
DOC: Fix some typos and incorrect markups
  • Loading branch information
charris committed May 11, 2024
2 parents 3a96e4d + 8966ad0 commit 1e53863
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/source/dev/howto-docs.rst
Expand Up @@ -376,7 +376,7 @@ membergroups and members-only options:
:outline:
:no-link:
Checkout the `doxygenclass documentation <https://breathe.readthedocs.io/en/latest/class.html#class-example>_`
Checkout the `doxygenclass documentation <https://breathe.readthedocs.io/en/latest/class.html#class-example>`__
for more details and to see it in action.

``doxygennamespace``
Expand Down
18 changes: 9 additions & 9 deletions doc/source/reference/c-api/array.rst
Expand Up @@ -1802,14 +1802,14 @@ the functions that must be implemented for each slot.
"default" value that may differ from the "identity" value normally used.
For example:
- ``0.0`` is the default for ``sum([])``. But ``-0.0`` is the correct
identity otherwise as it preserves the sign for ``sum([-0.0])``.
- We use no identity for object, but return the default of ``0`` and
``1`` for the empty ``sum([], dtype=object)`` and
``prod([], dtype=object)``.
This allows ``np.sum(np.array(["a", "b"], dtype=object))`` to work.
- ``-inf`` or ``INT_MIN`` for ``max`` is an identity, but at least
``INT_MIN`` not a good *default* when there are no items.
- ``0.0`` is the default for ``sum([])``. But ``-0.0`` is the correct
identity otherwise as it preserves the sign for ``sum([-0.0])``.
- We use no identity for object, but return the default of ``0`` and
``1`` for the empty ``sum([], dtype=object)`` and
``prod([], dtype=object)``.
This allows ``np.sum(np.array(["a", "b"], dtype=object))`` to work.
- ``-inf`` or ``INT_MIN`` for ``max`` is an identity, but at least
``INT_MIN`` not a good *default* when there are no items.
*initial* is a pointer to the data for the initial value, which should be
filled in. Returns -1, 0, or 1 indicating error, no initial value, and the
Expand Down Expand Up @@ -3912,7 +3912,7 @@ are defined:
* If neither is defined, the C-API is declared to
``static void **PyArray_API``, so it is only visible within the
compilation unit/file using ``#includes numpy/arrayobject.h``.
compilation unit/file using ``#include <numpy/arrayobject.h>``.
* If only ``PY_ARRAY_UNIQUE_SYMBOL`` is defined (it could be empty) then
the it is declared to a non-static ``void **`` allowing it to be used
by other files which are linked.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user/absolute_beginners.rst
Expand Up @@ -235,7 +235,7 @@ only one "data type". The data type is recorded in the ``dtype`` attribute.
>>> a.dtype
dtype('int64') # "int" for integer, "64" for 64-bit

ref:`Read more about array attributes here <arrays.ndarray>` and learn about
:ref:`Read more about array attributes here <arrays.ndarray>` and learn about
:ref:`array objects here <arrays>`.

How to create a basic array
Expand Down

0 comments on commit 1e53863

Please sign in to comment.