diff --git a/doc/manual/arrays.rst b/doc/manual/arrays.rst index 8cae33f78f30e..974636fa86557 100644 --- a/doc/manual/arrays.rst +++ b/doc/manual/arrays.rst @@ -363,8 +363,8 @@ where each ``I_k`` may be: If ``X`` is an array, it must have the same number of elements as the product of the lengths of the indices: ``prod(length(I_1), length(I_2), ..., length(I_n))``. The value in location -``i_1, i_2, ..., i_n`` of ``A`` is overwritten with the value -``X[I_1[i_1], I_2[i_2], ..., I_n[i_n]]``. If ``X`` is not an array, its value +``I_1[i_1], I_2[i_2], ..., I_n[i_n]`` of ``A`` is overwritten with the value +``X[i_1, i_2, ..., i_n]``. If ``X`` is not an array, its value is written to all referenced locations of ``A``. A boolean array used as an index behaves as in :func:`getindex`, behaving as