Skip to content

Commit

Permalink
correction to compat notice for a[begin] (#55209)
Browse files Browse the repository at this point in the history
Correction to #55197: `a[begin]` indexing was added in Julia 1.4
(#33946), not in Julia 1.6 (which just changed the implementation in
#35779). My bad.
  • Loading branch information
stevengj committed Jul 22, 2024
1 parent b79856e commit 06467eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/docs/basedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,8 @@ implicitly begin blocks of code. See also [`;`](@ref).
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.
!!! compat "Julia 1.4"
Use of `begin` as an index requires Julia 1.4 or later.
# Examples
```jldoctest
Expand Down

0 comments on commit 06467eb

Please sign in to comment.