Skip to content

Commit 54676b9

Browse files
committed
Fix typos in choose docstring
1 parent 7c9a987 commit 54676b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/dpnp_iface_indexing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def choose(a, choices, out=None, mode="wrap"):
220220
See also
221221
--------
222222
:obj:`dpnp.ndarray.choose` : Equivalent method.
223-
:obj:`dpnp.take_along_axis` : Preferable if choices is an array.
223+
:obj:`dpnp.take_along_axis` : Preferable if `choices` is an array.
224224
225225
Examples
226226
--------
@@ -262,7 +262,7 @@ def choose(a, choices, out=None, mode="wrap"):
262262
inds = dpnp.get_usm_ndarray(a)
263263
ind_dt = inds.dtype
264264
if not dpnp.issubdtype(ind_dt, dpnp.integer):
265-
# NumPy will cast up to to int64 in general but
265+
# NumPy will cast up to int64 in general but
266266
# int32 is more than safe for bool
267267
if ind_dt == dpnp.bool:
268268
inds = dpt.astype(inds, dpt.int32)

0 commit comments

Comments
 (0)