diff --git a/base/docs/basedocs.jl b/base/docs/basedocs.jl index 37804d1d9a380..ad9c2e67fa917 100644 --- a/base/docs/basedocs.jl +++ b/base/docs/basedocs.jl @@ -1386,7 +1386,11 @@ Usually `begin` will not be necessary, since keywords such as [`function`](@ref) implicitly begin blocks of code. See also [`;`](@ref). `begin` may also be used when indexing to represent the first index of a -collection or the first index of a dimension of an array. +collection or the first index of a dimension of an array. For example, +`a[begin]` is the first element of an array `a`. + +!!! compat "Julia 1.6" + Use of `begin` as an index requires Julia 1.6 or later. # Examples ```jldoctest