Skip to content

Commit f9b8a3c

Browse files
committed
Remove parens
1 parent da1e3c5 commit f9b8a3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/manual/arrays.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ If all the indices are scalars, then the result `X` is a single element from the
295295
`X` is an array with the same number of dimensions as the sum of the dimensionalities of all the
296296
indices.
297297

298-
If all indices are vectors, for example, then the shape of `X` would be `(length(I₁), length(I₂), ..., length(Iₙ))`,
299-
with location `(i₁, i₂, ..., iₙ)` of `X` containing the value `A[(I₁[i₁], I₂[i₂], ..., Iₙ[iₙ])]`.
298+
If all indices `Iₖ` are vectors, for example, then the shape of `X` would be `(length(I₁), length(I₂), ..., length(Iₙ))`,
299+
with location `i₁, i₂, ..., iₙ` of `X` containing the value `A[I₁[i₁], I₂[i₂], ..., Iₙ[iₙ]]`.
300300

301301
Example:
302302

@@ -364,7 +364,7 @@ julia> A[[1 2; 1 2], 1, 2, 1]
364364
5 6
365365
```
366366

367-
The location `(i₁, i₂, i₃, ..., iₙ₊₁)` contains the value at `A[I₁[i₁, i₂], I₂[i₃], ..., Iₙ[iₙ₊₁]]`.
367+
The location `i₁, i₂, i₃, ..., iₙ₊₁` contains the value at `A[I₁[i₁, i₂], I₂[i₃], ..., Iₙ[iₙ₊₁]]`.
368368
All dimensions indexed with scalars are dropped. For example, the result of `A[2, J, 3]` is an
369369
array with size `size(J)`. Its `i`th element is populated by `A[2, J[i], 3]`.
370370

0 commit comments

Comments
 (0)