diff --git a/base/abstractarray.jl b/base/abstractarray.jl index f394bff737ee0..dbabf14836f57 100644 --- a/base/abstractarray.jl +++ b/base/abstractarray.jl @@ -810,7 +810,7 @@ pointer{T}(x::AbstractArray{T}, i::Integer) = (@_inline_meta; unsafe_convert(Ptr """ getindex(A, inds...) -Returns a subset of array `A` as specified by `inds`, where each `ind` may be an +Return a subset of array `A` as specified by `inds`, where each `ind` may be an `Int`, a `Range`, or a `Vector`. See the manual section on [array indexing](:ref:`array indexing `) for details. diff --git a/doc/stdlib/arrays.rst b/doc/stdlib/arrays.rst index c556cbc4765e5..4bfcbec4afe20 100644 --- a/doc/stdlib/arrays.rst +++ b/doc/stdlib/arrays.rst @@ -692,7 +692,7 @@ Indexing, Assignment, and Concatenation .. Docstring generated from Julia source - Returns a subset of array ``A`` as specified by ``inds``\ , where each ``ind`` may be an ``Int``\ , a ``Range``\ , or a ``Vector``\ . See the manual section on :ref:`array indexing ` for details. + Return a subset of array ``A`` as specified by ``inds``\ , where each ``ind`` may be an ``Int``\ , a ``Range``\ , or a ``Vector``\ . See the manual section on :ref:`array indexing ` for details. .. doctest::