Skip to content

Commit e0e93fc

Browse files
committed
Merge pull request #16199 from aaamini/patch-1
Update arrays.rst
2 parents cb1b491 + 91ca89a commit e0e93fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/manual/arrays.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ where each ``I_k`` may be:
363363
If ``X`` is an array, it must have the same number of elements as the product
364364
of the lengths of the indices:
365365
``prod(length(I_1), length(I_2), ..., length(I_n))``. The value in location
366-
``i_1, i_2, ..., i_n`` of ``A`` is overwritten with the value
367-
``X[I_1[i_1], I_2[i_2], ..., I_n[i_n]]``. If ``X`` is not an array, its value
366+
``I_1[i_1], I_2[i_2], ..., I_n[i_n]`` of ``A`` is overwritten with the value
367+
``X[i_1, i_2, ..., i_n]``. If ``X`` is not an array, its value
368368
is written to all referenced locations of ``A``.
369369

370370
A boolean array used as an index behaves as in :func:`getindex`, behaving as

0 commit comments

Comments
 (0)