Good catch!  Would you be willing to open a pull request to correct it? 
 You can edit it directly on GitHub if you'd 
prefer: https://github.com/JuliaLang/julia/edit/master/doc/manual/arrays.rst

Thanks!

On Wednesday, May 4, 2016 at 2:08:58 PM UTC-4, passerby51 wrote:
>
> Hello,
>
> In the discussion of arrays in the manual, in the assignment section 
> <http://docs.julialang.org/en/release-0.4/manual/arrays/#assignment> it 
> says of this:
>
> A[I_1, I_2, ..., I_n] = X
>
> The it does the following:
>
> If X is an array, its size must be (length(I_1), length(I_2), ..., 
>> length(I_n)), and the value in location i_1, i_2, ..., i_n of A is 
>> overwritten with the valueX[I_1[i_1], I_2[i_2], ..., I_n[i_n]]. If X is 
>> not an array, its value is written to all referenced locations of A.
>
>
> It seems to me that it should be this:
>
> If X is an array, its size must be (length(I_1), length(I_2), ..., 
> length(I_n)), and the value in location I_1[i_1], I_2[i_2], ..., I_n[i_n] 
>  of A is overwritten with the valueXi_1, i_2, ..., i_n]. If X is not an 
> array, its value is written to all referenced locations of A.
>
>
>

Reply via email to