Skip to content

Commit b01fd33

Browse files
authored
more clarity on [] indexing (#47387)
1 parent 37e0579 commit b01fd33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/manual/arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ indices and can be converted to such by [`to_indices`](@ref):
653653
* [`CartesianIndex{N}`](@ref)s, which behave like an `N`-tuple of integers spanning multiple dimensions (see below for more details)
654654
2. An array of scalar indices. This includes:
655655
* Vectors and multidimensional arrays of integers
656-
* Empty arrays like `[]`, which select no elements
656+
* Empty arrays like `[]`, which select no elements e.g. `A[[]]` (not to be confused with `A[]`)
657657
* Ranges like `a:c` or `a:b:c`, which select contiguous or strided subsections from `a` to `c` (inclusive)
658658
* Any custom array of scalar indices that is a subtype of `AbstractArray`
659659
* Arrays of `CartesianIndex{N}` (see below for more details)

0 commit comments

Comments
 (0)